Explorar el Código

- updated the make file for freezed executable

Marius Stanciu hace 6 años
padre
commit
c091af35b8
Se han modificado 2 ficheros con 17 adiciones y 1 borrados
  1. 4 0
      README.md
  2. 13 1
      make_freezed.py

+ 4 - 0
README.md

@@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing.
 
 =================================================
 
+8.11.2019
+
+- updated the make file for freezed executable
+
 7.11.2019
 
 - added the '.ngc' file extension to the GCode Save file dialog filter

+ 13 - 1
make_win.py → make_freezed.py

@@ -89,7 +89,19 @@ else:
 
 print("INCLUDE_FILES", include_files)
 
+
+def getTargetName():
+    my_OS = platform.system()
+    if my_OS == 'Linux':
+        return "FlatCAM"
+    elif my_OS == 'Windows':
+        return "FlatCAM.exe"
+    else:
+        return "FlatCAM.dmg"
+
+
 # execfile('clean.py')
+exe = Executable("FlatCAM.py", icon='share/flatcam_icon48.ico', base=base, targetName=getTargetName())
 
 setup(
     name="FlatCAM",
@@ -97,5 +109,5 @@ setup(
     version="8.9",
     description="FlatCAM: 2D Computer Aided PCB Manufacturing",
     options=dict(build_exe=buildOptions),
-    executables=[Executable("FlatCAM.py", icon='share/flatcam_icon48.ico', base=base)]
+    executables=[exe]
 )