forked from meerk40t/meerk40t
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.cmd
24 lines (22 loc) · 853 Bytes
/
package.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
echo This will create a new meerk40t.exe! If you are not sure, you can cancel this via Ctrl-C...
pause
if not exist meerk40t.exe goto compile
copy meerk40t.exe meerk40t.exe.old
echo Your old executable is still available as 'meerk40t.exe.old'
:compile
cd meerk40t
move external_plugins.py external_plugins.unused
move external_plugins_build.py external_plugins.py
cd ..
rem pyinstaller struggles with meerk40t.py having the same name as the package meerk40t. Rename for the build
move meerk40t.py mk40t.py
pyinstaller .github/workflows/win/meerk40t.spec
move mk40t.py meerk40t.py
rem Restore original configuration (not really necessary in build environment which is fresh each time)
cd meerk40t
move external_plugins.py external_plugins_build.py
move external_plugins.unused external_plugins.py
cd ..
copy dist\meerk40t.exe .
echo All done.