File tree Expand file tree Collapse file tree 3 files changed +33
-7
lines changed
Expand file tree Collapse file tree 3 files changed +33
-7
lines changed Original file line number Diff line number Diff line change 1+ name : Publish tags
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build-and-publish-binaries :
10+ name : Build binaries (${{ matrix.os }})
11+ strategy :
12+ matrix :
13+ os : [ubuntu-latest, windows-latest, macos-latest]
14+ runs-on : ${{ matrix.os }}
15+ permissions :
16+ contents : write
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v3
20+ - name : Setup Node
21+ uses : actions/setup-node@v4
22+ with :
23+ node-version-file : " .node-version"
24+ - run : npm ci
25+ - run : npm run build
Original file line number Diff line number Diff line change 11// @see - https://www.electron.build/configuration/configuration
22{
33 "$schema" : "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json" ,
4- "appId" : "YourAppID " ,
4+ "appId" : "de.jupiterpi.thyme " ,
55 "asar" : true ,
66 "productName" : "Thyme" ,
77 "directories" : {
1515 "target" : [
1616 "dmg"
1717 ] ,
18- "artifactName" : "${productName}-Mac- ${version}-Installer .${ext}"
18+ "artifactName" : "thyme- ${version}-macos .${ext}"
1919 } ,
2020 "win" : {
2121 "target" : [
2626 ]
2727 }
2828 ] ,
29- "artifactName" : "${productName}-Windows-${version}-Setup.${ext}"
29+ "artifactName" : "thyme-${version}-win.${ext}" ,
30+ "publish" : [ "github" ] ,
3031 } ,
3132 "nsis" : {
3233 "oneClick" : false ,
3839 "target" : [
3940 "AppImage"
4041 ] ,
41- "artifactName" : "${productName}-Linux- ${version}.${ext}"
42+ "artifactName" : "thyme- ${version}-linux .${ext}"
4243 }
4344}
Original file line number Diff line number Diff line change 11{
22 "name" : " thyme" ,
3+ "repository" : " github:JupiterPi/thyme" ,
34 "private" : true ,
45 "version" : " 0.0.0" ,
56 "type" : " module" ,
67 "scripts" : {
78 "dev" : " vite" ,
8- "build" : " tsc && vite build && electron-builder" ,
9- "lint" : " eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0" ,
10- "preview" : " vite preview"
9+ "build" : " tsc && vite build && electron-builder --publish onTag" ,
10+ "lint" : " eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
1111 },
1212 "devDependencies" : {
1313 "@tailwindcss/vite" : " ^4.1.4" ,
You can’t perform that action at this time.
0 commit comments