Skip to content

Commit 00bfa6f

Browse files
author
cute5051
committed
test vers
1 parent 039d7f0 commit 00bfa6f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,19 @@ jobs:
2222
node-version: '22.20.0'
2323
cache: 'npm'
2424

25-
- name: Install dependencies
26-
run: npm install
25+
- name: Extract version from tag
26+
id: get_version
27+
run: |
28+
VERSION=${GITHUB_REF#refs/tags/v}
29+
echo "version=$VERSION" >> $GITHUB_OUTPUT
30+
echo "Using version: $VERSION"
31+
- name: Install dependencies
32+
run: npm install
2733
2834
- name: Run make using package.json script
2935
run: npm run make
36+
env:
37+
APP_VERSION: ${{ steps.get_version.outputs.VERSION }}
3038

3139
- name: Upload build artifacts
3240
uses: actions/upload-artifact@v4

forge.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
name: 'BPSR-PSO',
77
icon: './resources/ico',
88
asar: true,
9+
version: process.env.APP_VERSION || require('./package.json').version,
910
extraResource: ['./resources/npcap-1.83.exe'],
1011
},
1112
rebuildConfig: {},

0 commit comments

Comments
 (0)