Skip to content

Commit

Permalink
Use statically linked UpdateElevate
Browse files Browse the repository at this point in the history
  • Loading branch information
psieg committed Feb 10, 2024
1 parent 7ca6737 commit 3c894ba
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ Software/dmg/contents
build-vars.prf
debug/
release/
Software/dist_windows/content
Software/dist_windows/content/*
!Software/dist_windows/content/UpdateElevate.exe
Software/lib
Software/.vs
*.vcxproj
Expand Down
Binary file added Software/dist_windows/content/UpdateElevate.exe
Binary file not shown.
14 changes: 9 additions & 5 deletions Software/scripts/win32/prepare_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
set -e

# build UpdateElevate
echo "#define NAME L\"Prismatik\"" > UpdateElevate/UpdateElevate/command.h
echo "#define EXT L\".exe\"" >> UpdateElevate/UpdateElevate/command.h
echo "#define ARGS L\" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART\"" >> UpdateElevate/UpdateElevate/command.h
cmd //c scripts\\win32\\build_UpdateElevate.bat
cp UpdateElevate/x64/Release/UpdateElevate.exe dist_windows/content/
if [ -f dist_windows/content/UpdateElevate.exe ]; then
echo "Using existing (frozen) UpdateElevate";
else
echo "#define NAME L\"Prismatik\"" > UpdateElevate/UpdateElevate/command.h
echo "#define EXT L\".exe\"" >> UpdateElevate/UpdateElevate/command.h
echo "#define ARGS L\" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART\"" >> UpdateElevate/UpdateElevate/command.h
cmd //c scripts\\win32\\build_UpdateElevate.bat
cp UpdateElevate/x64/Release/UpdateElevate.exe dist_windows/content/
fi



Expand Down

0 comments on commit 3c894ba

Please sign in to comment.