-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmake_archives.bat
More file actions
58 lines (39 loc) · 1.38 KB
/
Copy pathmake_archives.bat
File metadata and controls
58 lines (39 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@echo off
call globals.bat
set Line=--------------------------------------------------------------------------------
set bash=C:\Windows\Sysnative\bash.exe
if not exist %bash% set bash=C:\Windows\system32\bash.exe
echo( > %LicenseFileT%
echo %Line% >> %LicenseFileT%
echo( >> %LicenseFileT%
echo LICENSE >> %LicenseFileT%
echo( >> %LicenseFileT%
%AppExe32Compiled% --license >> %LicenseFileT%
copy %AppExe32Compiled% %AppExe%
%AppExe% --help > %README%
type %LicenseFileT% >> %README%
if exist %PortableFileZip32% del %PortableFileZip32%
%CreatePortableZip32%
copy %AppExe64Compiled% %AppExe%
%AppExe% --help > %README%
type %LicenseFileT% >> %README%
if exist %PortableFileZip64% del %PortableFileZip64%
%CreatePortableZip64%
:: Needed to run 32-bit Linux executable
%bash% -c "sudo service binfmt-support start"
echo ---------------- Linux 32-bit ------------------
copy %AppExe32CompiledLinux% %AppExeLinux%
%bash% -c "./%AppExeLinux% --help > %README%"
type %LicenseFileT% >> %README%
if exist %PortableFileZipLinux32% del %PortableFileZipLinux32%
%CreatePortableZipLinux32%
echo ---------------- Linux 64-bit ------------------
copy %AppExe64CompiledLinux% %AppExeLinux%
%bash% -c "./%AppExeLinux% > %README%"
type %LicenseFileT% >> %README%
if exist %PortableFileZipLinux64% del %PortableFileZipLinux64%
%CreatePortableZipLinux64%
del %AppExe%
del %AppExeLinux%
del %LicenseFileT%
pause