revert generating uninst, linux cant run that..

i should find a different way later
This commit is contained in:
ConfiG 2024-06-25 15:00:16 +03:00
parent eb22e0e294
commit 53ea4c1756
No known key found for this signature in database
GPG key ID: 44DA1983F524C11B
2 changed files with 2 additions and 23 deletions
.github/workflows
installer/windows

View file

@ -128,9 +128,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: geode-installer-win
path: |
./installer/windows/geode-installer-win.exe
./installer/windows/GeodeUninstaller.exe
path: './installer/windows/geode-installer-win.exe'
- name: Complete Build Debug Info
uses: ./.github/actions/build-debug-info-post
@ -337,9 +335,7 @@ jobs:
- name: Zip Windows Artifacts
uses: vimtor/action-zip@v1.2
with:
files: >-
geode-win/XInput1_4.dll geode-win/Geode.dll geode-win/Geode.lib geode-win/Geode.pdb
geode-win/GeodeUpdater.exe geode-installer-win/GeodeUninstaller.exe
files: geode-win/XInput1_4.dll geode-win/Geode.dll geode-win/GeodeUpdater.exe geode-win/Geode.lib geode-win/Geode.pdb
dest: geode-${{ steps.ref.outputs.hash }}-win.zip
- name: Zip Android32 Artifacts

View file

@ -491,23 +491,6 @@ Section "steam_appid.txt"
SectionEnd
Function .onInit
# huge thanks to Anders for the reference !!
# https://forums.winamp.com/forum/developer-center/nsis-discussion/4633037-creating-an-uninstaller-in-compile-time?p=4633073#post4633073
!ifdef GENERATE_UNINSTALLER
WriteUninstaller "${__FILEDIR__}\GeodeUninstaller.exe"
SetErrorLevel 0
Quit
!else
; get a temporary file path
!tempfile TMPINST
!delfile "${TMPINST}"
; create and run the installer that just uses WriteUninstaller
!makensis "-DGENERATE_UNINSTALLER $\"${__FILE__}$\" $\"-XOutFile '${TMPINST}.exe'$\""
!system '"${TMPINST}.exe" /S'
!delfile "${TMPINST}.exe"
!endif
!insertmacro MUI_LANGDLL_DISPLAY
IntOp $0 ${SF_SELECTED} | ${SF_RO}