another attempt with nsis..

This commit is contained in:
DJ2LS 2024-01-31 10:19:07 +01:00
parent d06cdd5649
commit 718ffd5ee7
2 changed files with 7 additions and 2 deletions

View file

@ -31,7 +31,7 @@ jobs:
uses: joncloud/makensis-action@v4
with:
script-file: "freedata-server-nsis-config.nsi"
arguments: "/V3"
arguments: '/DGITHUB_WORKSPACE="${{ $GITHUB_WORKSPACE }}" /V3'
- name: LIST ALL FILES
run: ls -R

View file

@ -15,13 +15,18 @@ ShowInstDetails show
; Show uninstallation details
ShowUninstDetails show
; Define GITHUB location
!define GITHUB_WORKSPACE
Section "MainSection" SEC01
; Set the output path to the installation directory
SetOutPath $INSTDIR
; Add the entire FreeData Server directory
File /r "server.dist/*.*"
File /r ""${GITHUB_WORKSPACE}\modem\server.dist\*.*"
; Write the installation path to the registry
WriteRegStr HKCU "Software\FreeDataServer" "Install_Dir" "$INSTDIR"