mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 20:22:08 +08:00
Fix syso naming issue
This commit is contained in:
parent
5f1b1efc66
commit
a98bf32b24
@ -78,7 +78,7 @@ tasks:
|
||||
platforms:
|
||||
- windows
|
||||
cmds:
|
||||
- wails3 generate syso -arch {{.GOARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json -out ../wails.syso
|
||||
- wails3 generate syso -arch {{.GOARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json -out ../wails_windows.syso
|
||||
vars:
|
||||
GOARCH: '{{.GOARCH}}'
|
||||
|
||||
@ -93,7 +93,7 @@ tasks:
|
||||
vars:
|
||||
GOARCH: amd64
|
||||
- go build -tags production -ldflags="-w -s -H windowsgui" -o bin/{{.APP_NAME}}
|
||||
- powershell Remove-item wails.syso
|
||||
- powershell Remove-item *.syso
|
||||
|
||||
|
||||
package:windows:arm64:
|
||||
@ -105,6 +105,6 @@ tasks:
|
||||
vars:
|
||||
GOARCH: arm64
|
||||
- go build -tags production -ldflags="-w -s -H windowsgui" -o bin/buildtest.arm64.exe
|
||||
- powershell Remove-item wails.syso
|
||||
- powershell Remove-item *.syso
|
||||
env:
|
||||
GOARCH: arm64
|
||||
|
@ -166,7 +166,7 @@ tasks:
|
||||
dir: build
|
||||
platform: windows
|
||||
cmds:
|
||||
- wails generate syso -arch {{.ARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json -out ../wails.syso
|
||||
- wails generate syso -arch {{.ARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json
|
||||
vars:
|
||||
ARCH: $GOARCH
|
||||
|
||||
@ -180,4 +180,4 @@ tasks:
|
||||
vars:
|
||||
ARCH: amd64
|
||||
- go build -tags production -ldflags="-w -s -H windowsgui" -o bin/{{.APP_NAME}}.exe
|
||||
- powershell Remove-item wails.syso
|
||||
- powershell Remove-item *.syso
|
||||
|
@ -75,7 +75,7 @@ tasks:
|
||||
platforms:
|
||||
- windows
|
||||
cmds:
|
||||
- wails3 generate syso -arch {{.GOARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json -out ../wails.syso
|
||||
- wails3 generate syso -arch {{.GOARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json
|
||||
vars:
|
||||
GOARCH: '{{.GOARCH}}'
|
||||
|
||||
@ -90,7 +90,7 @@ tasks:
|
||||
vars:
|
||||
GOARCH: amd64
|
||||
- go build -tags production -gcflags=all="-N -l" -o bin/{{.APP_NAME}}
|
||||
- powershell Remove-item wails.syso
|
||||
- powershell Remove-item *.syso
|
||||
|
||||
|
||||
package:windows:arm64:
|
||||
@ -102,6 +102,6 @@ tasks:
|
||||
vars:
|
||||
GOARCH: arm64
|
||||
- go build -tags production -ldflags="-w -s -H windowsgui" -o bin/buildtest.arm64.exe
|
||||
- powershell Remove-item wails.syso
|
||||
- powershell Remove-item *.syso
|
||||
env:
|
||||
GOARCH: arm64
|
||||
|
@ -13,6 +13,7 @@ tasks:
|
||||
- task: generate:syso
|
||||
cmds:
|
||||
- go build {{.BUILD_FLAGS}} -o {{.BIN_DIR}}/{{.APP_NAME}}.exe
|
||||
- powershell Remove-item *.syso
|
||||
vars:
|
||||
BUILD_FLAGS: '{{if eq .PRODUCTION "true"}}-tags production -trimpath -ldflags="-w -s -H windowsgui"{{else}}-gcflags=all="-l"{{end}}'
|
||||
env:
|
||||
@ -30,7 +31,7 @@ tasks:
|
||||
summary: Generates Windows `.syso` file
|
||||
dir: build
|
||||
cmds:
|
||||
- wails3 generate syso -arch {{.ARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json -out ../wails.syso
|
||||
- wails3 generate syso -arch {{.ARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json
|
||||
vars:
|
||||
ARCH: '{{.ARCH | default ARCH}}'
|
||||
|
||||
|
@ -13,6 +13,7 @@ tasks:
|
||||
- task: generate:syso
|
||||
cmds:
|
||||
- go build {{.BUILD_FLAGS}} -o {{.BIN_DIR}}/{{.APP_NAME}}.exe
|
||||
- powershell Remove-item *.syso
|
||||
vars:
|
||||
BUILD_FLAGS: '{{if eq .PRODUCTION "true"}}-tags production -trimpath -ldflags="-w -s -H windowsgui"{{else}}-gcflags=all="-l"{{end}}'
|
||||
env:
|
||||
@ -30,7 +31,7 @@ tasks:
|
||||
summary: Generates Windows `.syso` file
|
||||
dir: build
|
||||
cmds:
|
||||
- wails3 generate syso -arch {{.ARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json -out ../wails.syso
|
||||
- wails3 generate syso -arch {{.ARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json -out ../wails_windows_{{.ARCH}}.syso
|
||||
vars:
|
||||
ARCH: '{{.ARCH | default ARCH}}'
|
||||
|
||||
|
@ -172,7 +172,7 @@ tasks:
|
||||
dir: build
|
||||
platform: windows
|
||||
cmds:
|
||||
- wails generate syso -arch {{ "{{.ARCH}}" }} -icon icon.ico -manifest wails.exe.manifest -info info.json -out ../wails.syso
|
||||
- wails generate syso -arch {{ "{{.ARCH}}" }} -icon icon.ico -manifest wails.exe.manifest -info info.json
|
||||
vars:
|
||||
ARCH: $GOARCH
|
||||
|
||||
@ -186,4 +186,4 @@ tasks:
|
||||
vars:
|
||||
ARCH: amd64
|
||||
- go build -tags production -ldflags="-w -s -H windowsgui" -o bin/{{ "{{.APP_NAME}}" }}.exe
|
||||
- powershell Remove-item wails.syso
|
||||
- powershell Remove-item *.syso
|
||||
|
Loading…
Reference in New Issue
Block a user