another attempt with nsis..

This commit is contained in:
DJ2LS 2024-01-30 22:12:45 +01:00
parent 058eacd07a
commit 9d44a47317
2 changed files with 9 additions and 2 deletions

View file

@ -24,16 +24,23 @@ jobs:
run: |
python3 -m nuitka --remove-output --assume-yes-for-downloads --follow-imports --include-data-dir=lib=lib --include-data-files=lib/codec2/*=lib/codec2/ --include-data-files=config.ini.example=config.ini --standalone server.py --output-filename=freedata-server
- name: LIST ALL FILES
run: ls -R
- name: Create installer
working-directory: modem
uses: joncloud/makensis-action@v4
with:
script-file: "freedata-server-nsis-config.nsi"
- name: LIST ALL FILES
run: ls -R
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: 'FreeData-Server-Installer'
path: ../FreeData-Server-Installer.exe
path: ./FreeData-Server-Installer.exe
- name: Upload Installer to Release
uses: softprops/action-gh-release@v1

View file

@ -21,7 +21,7 @@ Section "MainSection" SEC01
SetOutPath $INSTDIR
; Add the entire FreeData Server directory
File /r "modem/server.dist/*.*"
File /r "server.dist/*.*"
; Write the installation path to the registry
WriteRegStr HKCU "Software\FreeDataServer" "Install_Dir" "$INSTDIR"