Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@
# sudo apt-get install gcc-mingw-w64 nsis

if [[ "$1" == "release" ]]; then
mkdir -p bin/32 bin/64
mkdir -p bin/32 bin/64 bin/arm64
cp SuperF4.ini bin/32/
cp SuperF4.ini bin/64/
cp SuperF4.ini bin/arm64/

i686-w64-mingw32-windres -o superf4.o include/app.rc
i686-w64-mingw32-gcc -o bin/32/SuperF4.exe superf4.c superf4.o -mwindows -lshlwapi -lpsapi -O2 -s -fstack-protector-all -static -Wl,--dynamicbase,--nxcompat,--high-entropy-va -Wp,-D_FORTIFY_SOURCE=2

x86_64-w64-mingw32-windres -o superf4.o include/app.rc
x86_64-w64-mingw32-gcc -o bin/64/SuperF4.exe superf4.c superf4.o -mwindows -lshlwapi -lpsapi -O2 -s -fstack-protector-all -static -Wl,--dynamicbase,--nxcompat,--high-entropy-va -Wp,-D_FORTIFY_SOURCE=2

aarch64-w64-mingw32-windres -o superf4.o include/app.rc
aarch64-w64-mingw32-gcc -o bin/arm64/SuperF4.exe superf4.c superf4.o -mwindows -lshlwapi -lpsapi -O2 -s -fstack-protector-all -static -Wl,--dynamicbase,--nxcompat,--high-entropy-va -Wp,-D_FORTIFY_SOURCE=2

makensis -V2 -Dx64 installer.nsi
else
x86_64-w64-mingw32-windres -o superf4.o include/app.rc
Expand Down
4 changes: 3 additions & 1 deletion installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ Section "" sec_app

; Install files
!ifdef x64
${If} ${RunningX64}
${If} ${IsNativeAMD64}
File "bin\64\${APP_NAME}.exe"
${ElseIf} ${IsNativeARM64}
File "bin\arm64\${APP_NAME}.exe"
${Else}
File "bin\32\${APP_NAME}.exe"
${EndIf}
Expand Down