diff --git a/.github/workflows/build_server_nsis.yml b/.github/workflows/build_server_nsis.yml index 7c8c3440..fbd27266 100644 --- a/.github/workflows/build_server_nsis.yml +++ b/.github/workflows/build_server_nsis.yml @@ -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 diff --git a/freedata-server-nsis-config.nsi b/freedata-server-nsis-config.nsi index 5aa0a7e0..47b81189 100644 --- a/freedata-server-nsis-config.nsi +++ b/freedata-server-nsis-config.nsi @@ -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"