修改打包配置

This commit is contained in:
zyj
2025-11-26 18:24:48 +08:00
parent 49f978992b
commit 8460251090
2 changed files with 22 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ tasks:
cmds:
# Create the Microsoft WebView2 bootstrapper if it doesn't exist
- wails3 generate webview2bootstrapper -dir "{{.ROOT_DIR}}/build/windows/nsis"
- makensis -DARG_WAILS_{{.ARG_FLAG}}_BINARY="{{.ROOT_DIR}}/{{.BIN_DIR}}/{{.APP_NAME}}.exe" project.nsi
- makensis -DARG_WAILS_{{.ARG_FLAG}}_BINARY="{{.ROOT_DIR}}\{{.BIN_DIR}}\{{.APP_NAME}}.exe" project.nsi
vars:
ARCH: '{{.ARCH | default ARCH}}'
ARG_FLAG: '{{if eq .ARCH "amd64"}}AMD64{{else}}ARM64{{end}}'

View File

@@ -88,6 +88,27 @@ Section
!insertmacro wails.files
; Copy config file
File "..\..\..\config.yaml"
; Copy folders
SetOutPath $INSTDIR\data
File /r /x .gitkeep "..\..\..\data\*.*"
SetOutPath $INSTDIR\install
File /r "..\..\..\install\*.*"
SetOutPath $INSTDIR\plugin
File /r "..\..\..\plugin\*.*"
SetOutPath $INSTDIR\site-dist
File /r /x .gitkeep "..\..\..\site-dist\*.*"
SetOutPath $INSTDIR\user-data
File /r "..\..\..\user-data\*.*"
SetOutPath $INSTDIR
CreateShortcut "$SMPROGRAMS\${INFO_PRODUCTNAME}.lnk" "$INSTDIR\${PRODUCT_EXECUTABLE}"
CreateShortCut "$DESKTOP\${INFO_PRODUCTNAME}.lnk" "$INSTDIR\${PRODUCT_EXECUTABLE}"