feat: write version name into package.json of frontend

This commit is contained in:
tiny-craft 2023-08-26 02:39:05 +08:00
parent 7fe7b8f9bc
commit 312dc47039
3 changed files with 12 additions and 3 deletions

View File

@ -56,7 +56,10 @@ jobs:
npm install -g npm npm install -g npm
jq '.info.productVersion = "${{ steps.normalise_version.outputs.version }}"' wails.json > tmp.json jq '.info.productVersion = "${{ steps.normalise_version.outputs.version }}"' wails.json > tmp.json
mv tmp.json wails.json mv tmp.json wails.json
cd frontend && npm install cd frontend
jq '.version = "${{ steps.normalise_version.outputs.version }}"' package.json > tmp.json
mv tmp.json package.json
npm install
- name: Build wails app for Linux - name: Build wails app for Linux
shell: bash shell: bash

View File

@ -62,7 +62,10 @@ jobs:
npm install -g npm npm install -g npm
jq '.info.productVersion = "${{ steps.normalise_version.outputs.version }}"' wails.json > tmp.json jq '.info.productVersion = "${{ steps.normalise_version.outputs.version }}"' wails.json > tmp.json
mv tmp.json wails.json mv tmp.json wails.json
cd frontend && npm install cd frontend
jq '.version = "${{ steps.normalise_version.outputs.version }}"' package.json > tmp.json
mv tmp.json package.json
npm install
- name: Build wails app for macOS - name: Build wails app for macOS
shell: bash shell: bash

View File

@ -55,7 +55,10 @@ jobs:
npm install -g npm npm install -g npm
jq '.info.productVersion = "${{ steps.normalise_version.outputs.version }}"' wails.json > tmp.json jq '.info.productVersion = "${{ steps.normalise_version.outputs.version }}"' wails.json > tmp.json
mv tmp.json wails.json mv tmp.json wails.json
cd frontend && npm install cd frontend
jq '.version = "${{ steps.normalise_version.outputs.version }}"' package.json > tmp.json
mv tmp.json package.json
npm install
- name: Build Windows portable app - name: Build Windows portable app
shell: bash shell: bash