chore: keep name the same as outputfilename in wails.json

This commit is contained in:
Lykin
2025-07-07 01:44:51 +08:00
parent c3cc5ccd2c
commit 1439a653b6
5 changed files with 7 additions and 6 deletions

View File

@@ -93,7 +93,8 @@ jobs:
shell: bash
run: |
content=$(cat build/linux/tiny-rdm_0.0.0_amd64/DEBIAN/control)
content=$(echo "$content" | sed -e "s/{{.Name}}/$(jq -r '.name' wails.json)/g")
name=$(jq -r '.name' wails.json | tr -d ' ' | tr '[:upper:]' '[:lower:]')
content=$(echo "$content" | sed -e "s/{{.Name}}/$name/g")
content=$(echo "$content" | sed -e "s/{{.Info.ProductVersion}}/$(jq -r '.info.productVersion' wails.json)/g")
content=$(echo "$content" | sed -e "s/{{.Author.Name}}/$(jq -r '.author.name' wails.json)/g")
content=$(echo "$content" | sed -e "s/{{.Author.Email}}/$(jq -r '.author.email' wails.json)/g")