mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 14:13:00 +08:00
Fix syso naming issue
This commit is contained in:
parent
5f1b1efc66
commit
a98bf32b24
@ -78,7 +78,7 @@ tasks:
|
|||||||
platforms:
|
platforms:
|
||||||
- windows
|
- windows
|
||||||
cmds:
|
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:
|
vars:
|
||||||
GOARCH: '{{.GOARCH}}'
|
GOARCH: '{{.GOARCH}}'
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ tasks:
|
|||||||
vars:
|
vars:
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
- go build -tags production -ldflags="-w -s -H windowsgui" -o bin/{{.APP_NAME}}
|
- 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:
|
package:windows:arm64:
|
||||||
@ -105,6 +105,6 @@ tasks:
|
|||||||
vars:
|
vars:
|
||||||
GOARCH: arm64
|
GOARCH: arm64
|
||||||
- go build -tags production -ldflags="-w -s -H windowsgui" -o bin/buildtest.arm64.exe
|
- go build -tags production -ldflags="-w -s -H windowsgui" -o bin/buildtest.arm64.exe
|
||||||
- powershell Remove-item wails.syso
|
- powershell Remove-item *.syso
|
||||||
env:
|
env:
|
||||||
GOARCH: arm64
|
GOARCH: arm64
|
||||||
|
@ -166,7 +166,7 @@ tasks:
|
|||||||
dir: build
|
dir: build
|
||||||
platform: windows
|
platform: windows
|
||||||
cmds:
|
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:
|
vars:
|
||||||
ARCH: $GOARCH
|
ARCH: $GOARCH
|
||||||
|
|
||||||
@ -180,4 +180,4 @@ tasks:
|
|||||||
vars:
|
vars:
|
||||||
ARCH: amd64
|
ARCH: amd64
|
||||||
- go build -tags production -ldflags="-w -s -H windowsgui" -o bin/{{.APP_NAME}}.exe
|
- 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:
|
platforms:
|
||||||
- windows
|
- windows
|
||||||
cmds:
|
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:
|
vars:
|
||||||
GOARCH: '{{.GOARCH}}'
|
GOARCH: '{{.GOARCH}}'
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ tasks:
|
|||||||
vars:
|
vars:
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
- go build -tags production -gcflags=all="-N -l" -o bin/{{.APP_NAME}}
|
- go build -tags production -gcflags=all="-N -l" -o bin/{{.APP_NAME}}
|
||||||
- powershell Remove-item wails.syso
|
- powershell Remove-item *.syso
|
||||||
|
|
||||||
|
|
||||||
package:windows:arm64:
|
package:windows:arm64:
|
||||||
@ -102,6 +102,6 @@ tasks:
|
|||||||
vars:
|
vars:
|
||||||
GOARCH: arm64
|
GOARCH: arm64
|
||||||
- go build -tags production -ldflags="-w -s -H windowsgui" -o bin/buildtest.arm64.exe
|
- go build -tags production -ldflags="-w -s -H windowsgui" -o bin/buildtest.arm64.exe
|
||||||
- powershell Remove-item wails.syso
|
- powershell Remove-item *.syso
|
||||||
env:
|
env:
|
||||||
GOARCH: arm64
|
GOARCH: arm64
|
||||||
|
@ -13,6 +13,7 @@ tasks:
|
|||||||
- task: generate:syso
|
- task: generate:syso
|
||||||
cmds:
|
cmds:
|
||||||
- go build {{.BUILD_FLAGS}} -o {{.BIN_DIR}}/{{.APP_NAME}}.exe
|
- go build {{.BUILD_FLAGS}} -o {{.BIN_DIR}}/{{.APP_NAME}}.exe
|
||||||
|
- powershell Remove-item *.syso
|
||||||
vars:
|
vars:
|
||||||
BUILD_FLAGS: '{{if eq .PRODUCTION "true"}}-tags production -trimpath -ldflags="-w -s -H windowsgui"{{else}}-gcflags=all="-l"{{end}}'
|
BUILD_FLAGS: '{{if eq .PRODUCTION "true"}}-tags production -trimpath -ldflags="-w -s -H windowsgui"{{else}}-gcflags=all="-l"{{end}}'
|
||||||
env:
|
env:
|
||||||
@ -30,7 +31,7 @@ tasks:
|
|||||||
summary: Generates Windows `.syso` file
|
summary: Generates Windows `.syso` file
|
||||||
dir: build
|
dir: build
|
||||||
cmds:
|
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:
|
vars:
|
||||||
ARCH: '{{.ARCH | default ARCH}}'
|
ARCH: '{{.ARCH | default ARCH}}'
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ tasks:
|
|||||||
- task: generate:syso
|
- task: generate:syso
|
||||||
cmds:
|
cmds:
|
||||||
- go build {{.BUILD_FLAGS}} -o {{.BIN_DIR}}/{{.APP_NAME}}.exe
|
- go build {{.BUILD_FLAGS}} -o {{.BIN_DIR}}/{{.APP_NAME}}.exe
|
||||||
|
- powershell Remove-item *.syso
|
||||||
vars:
|
vars:
|
||||||
BUILD_FLAGS: '{{if eq .PRODUCTION "true"}}-tags production -trimpath -ldflags="-w -s -H windowsgui"{{else}}-gcflags=all="-l"{{end}}'
|
BUILD_FLAGS: '{{if eq .PRODUCTION "true"}}-tags production -trimpath -ldflags="-w -s -H windowsgui"{{else}}-gcflags=all="-l"{{end}}'
|
||||||
env:
|
env:
|
||||||
@ -30,7 +31,7 @@ tasks:
|
|||||||
summary: Generates Windows `.syso` file
|
summary: Generates Windows `.syso` file
|
||||||
dir: build
|
dir: build
|
||||||
cmds:
|
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:
|
vars:
|
||||||
ARCH: '{{.ARCH | default ARCH}}'
|
ARCH: '{{.ARCH | default ARCH}}'
|
||||||
|
|
||||||
|
@ -172,7 +172,7 @@ tasks:
|
|||||||
dir: build
|
dir: build
|
||||||
platform: windows
|
platform: windows
|
||||||
cmds:
|
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:
|
vars:
|
||||||
ARCH: $GOARCH
|
ARCH: $GOARCH
|
||||||
|
|
||||||
@ -186,4 +186,4 @@ tasks:
|
|||||||
vars:
|
vars:
|
||||||
ARCH: amd64
|
ARCH: amd64
|
||||||
- go build -tags production -ldflags="-w -s -H windowsgui" -o bin/{{ "{{.APP_NAME}}" }}.exe
|
- 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