Skip to content

Commit 5ba0eda

Browse files
committed
feat: build workflow
1 parent 5d8a114 commit 5ba0eda

File tree

3 files changed

+33
-7
lines changed

3 files changed

+33
-7
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

electron-builder.json5

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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": {
@@ -15,7 +15,7 @@
1515
"target": [
1616
"dmg"
1717
],
18-
"artifactName": "${productName}-Mac-${version}-Installer.${ext}"
18+
"artifactName": "thyme-${version}-macos.${ext}"
1919
},
2020
"win": {
2121
"target": [
@@ -26,7 +26,8 @@
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,
@@ -38,6 +39,6 @@
3839
"target": [
3940
"AppImage"
4041
],
41-
"artifactName": "${productName}-Linux-${version}.${ext}"
42+
"artifactName": "thyme-${version}-linux.${ext}"
4243
}
4344
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
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",

0 commit comments

Comments
 (0)