File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 2929test /
3030config /
3131.DS_Store
32- route
33- tun
32+ bin /
Original file line number Diff line number Diff line change 33import shutil
44import subprocess
55
6- from app .cmd import delete_file_if_exists , delete_dir_if_exists
6+ from app .cmd import (
7+ create_dir_if_not_exists ,
8+ delete_file_if_exists ,
9+ delete_dir_if_exists ,
10+ )
711
812
913class Builder (object ):
@@ -103,9 +107,10 @@ def reset_package_name(self, file_name: str):
103107 with open (file_path , "w" ) as f :
104108 f .writelines (new_lines )
105109
106-
107110 def build_desktop_bin (self ):
108- output_file = os .path .join (self .lib_dir , self .bin_file )
111+ bin_dir = os .path .join (self .lib_dir , "bin" )
112+ create_dir_if_not_exists (bin_dir )
113+ output_file = os .path .join (bin_dir , self .bin_file )
109114 run_env = os .environ .copy ()
110115 run_env ["CGO_ENABLED" ] = "0"
111116
@@ -122,4 +127,4 @@ def build_desktop_bin(self):
122127 print (cmd )
123128 ret = subprocess .run (cmd , env = run_env )
124129 if ret .returncode != 0 :
125- raise Exception (f"build_desktop_bin failed" )
130+ raise Exception (f"build_desktop_bin failed" )
You can’t perform that action at this time.
0 commit comments