File tree Expand file tree Collapse file tree 3 files changed +82
-30
lines changed
Expand file tree Collapse file tree 3 files changed +82
-30
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches : [main, develop]
6+ paths-ignore :
7+ - ' **.md'
8+ - ' **.spec.js'
9+ - ' .idea'
10+ - ' .vscode'
11+ - ' .dockerignore'
12+ - ' Dockerfile'
13+ - ' .gitignore'
14+ - ' .github/**'
15+ - ' !.github/workflows/build.yml'
16+
17+ jobs :
18+ build :
19+ runs-on : ${{ matrix.os }}
20+
21+ strategy :
22+ matrix :
23+ os : [macos-latest, windows-latest, ubuntu-latest] #
24+
25+ steps :
26+ - name : Checkout Code
27+ uses : actions/checkout@v4
28+
29+ - name : Setup Node.js
30+ uses : actions/setup-node@v4
31+ with :
32+ node-version : 18
33+
34+ - uses : pnpm/action-setup@v3
35+ with :
36+ version : 8
37+
38+ - name : Install Dependencies
39+ run : pnpm install
40+
41+ - name : Build Release Files
42+ run : pnpm run build
43+
44+ # - name: Upload Artifact
45+ # uses: actions/upload-artifact@v4
46+ # with:
47+ # name: release_on_${{ matrix. os }}
48+ # path: release/
49+ # retention-days: 5
Original file line number Diff line number Diff line change 1+
2+ /**
3+ * @see https://www.electron.build/configuration/configuration
4+ */
5+ {
6+ appId : 'YourAppID' ,
7+ asar : true ,
8+ directories : {
9+ output : 'release/${version}' ,
10+ } ,
11+ files : [ 'src' ] ,
12+ mac : {
13+ artifactName : '${productName}_${version}.${ext}' ,
14+ target : [ 'dmg' , 'zip' ] ,
15+ } ,
16+ win : {
17+ target : [
18+ {
19+ target : 'nsis' ,
20+ arch : [ 'x64' ] ,
21+ } ,
22+ ] ,
23+ artifactName : '${productName}_${version}.${ext}' ,
24+ } ,
25+ nsis : {
26+ oneClick : false ,
27+ perMachine : false ,
28+ allowToChangeInstallationDirectory : true ,
29+ deleteAppDataOnUninstall : true ,
30+ installerIcon : 'build/icon.ico' ,
31+ installerHeaderIcon : 'build/icon.ico' ,
32+ }
33+ }
You can’t perform that action at this time.
0 commit comments