修改打包配置
This commit is contained in:
@@ -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}}'
|
||||
|
||||
@@ -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}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user