Skip to content

Commit 1439a65

Browse files
committed
chore: keep name the same as outputfilename in wails.json
1 parent c3cc5cc commit 1439a65

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

.github/workflows/release-linux-webkit2-41.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ jobs:
9494
shell: bash
9595
run: |
9696
content=$(cat build/linux/tiny-rdm_0.0.0_amd64/DEBIAN/control)
97-
content=$(echo "$content" | sed -e "s/{{.Name}}/$(jq -r '.name' wails.json)/g")
97+
name=$(jq -r '.name' wails.json | tr -d ' ' | tr '[:upper:]' '[:lower:]')
98+
content=$(echo "$content" | sed -e "s/{{.Name}}/$name/g")
9899
content=$(echo "$content" | sed -e "s/{{.Info.ProductVersion}}/$(jq -r '.info.productVersion' wails.json)/g")
99100
content=$(echo "$content" | sed -e "s/{{.Author.Name}}/$(jq -r '.author.name' wails.json)/g")
100101
content=$(echo "$content" | sed -e "s/{{.Author.Email}}/$(jq -r '.author.email' wails.json)/g")

.github/workflows/release-linux.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ jobs:
9393
shell: bash
9494
run: |
9595
content=$(cat build/linux/tiny-rdm_0.0.0_amd64/DEBIAN/control)
96-
content=$(echo "$content" | sed -e "s/{{.Name}}/$(jq -r '.name' wails.json)/g")
96+
name=$(jq -r '.name' wails.json | tr -d ' ' | tr '[:upper:]' '[:lower:]')
97+
content=$(echo "$content" | sed -e "s/{{.Name}}/$name/g")
9798
content=$(echo "$content" | sed -e "s/{{.Info.ProductVersion}}/$(jq -r '.info.productVersion' wails.json)/g")
9899
content=$(echo "$content" | sed -e "s/{{.Author.Name}}/$(jq -r '.author.name' wails.json)/g")
99100
content=$(echo "$content" | sed -e "s/{{.Author.Email}}/$(jq -r '.author.email' wails.json)/g")

.github/workflows/release-macos.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ jobs:
102102
shell: bash
103103
working-directory: ./build
104104
run: |
105-
mv bin/tinyrdm.app "bin/Tiny RDM.app"
106105
./create-dmg/create-dmg \
107106
--no-internet-enable \
108107
--volname "Tiny RDM" \

.github/workflows/release-windows.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ jobs:
113113
Set-Content -Path certificate\certificate.txt -Value '${{ secrets.WIN_SIGNING_CERT }}'
114114
certutil -decode certificate\certificate.txt certificate\certificate.pfx
115115
echo "Signing TinyRDM installer"
116-
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe' sign /td sha256 /tr http://timestamp.sectigo.com/?td=sha256 /f certificate\certificate.pfx /p '${{ secrets.WIN_SIGNING_CERT_PASSWORD }}' TinyRDM-${{ steps.normalise_platform_name.outputs.pname }}-installer.exe
116+
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe' sign /td sha256 /tr http://timestamp.sectigo.com/?td=sha256 /f certificate\certificate.pfx /p '${{ secrets.WIN_SIGNING_CERT_PASSWORD }}' 'Tiny RDM-${{ steps.normalise_platform_name.outputs.pname }}-installer.exe'
117117
118118
- name: Rename installer
119119
working-directory: ./build/bin
120-
run: Rename-Item -Path "TinyRDM-${{ steps.normalise_platform_name.outputs.pname }}-installer.exe" -NewName "TinyRDM_Setup_${{ steps.normalise_version.outputs.version }}_${{ steps.normalise_platform.outputs.tag }}.exe"
120+
run: Rename-Item -Path "Tiny RDM-${{ steps.normalise_platform_name.outputs.pname }}-installer.exe" -NewName "TinyRDM_Setup_${{ steps.normalise_version.outputs.version }}_${{ steps.normalise_platform.outputs.tag }}.exe"
121121

122122
- name: Upload release asset (Installer)
123123
uses: softprops/action-gh-release@v1

wails.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://wails.io/schemas/config.v2.json",
3-
"name": "tinyrdm",
3+
"name": "Tiny RDM",
44
"outputfilename": "Tiny RDM",
55
"frontend:install": "npm install",
66
"frontend:build": "npm run build",

0 commit comments

Comments
 (0)