Skip to content

Commit 3652a1c

Browse files
committed
2 parents 411cbfa + d0606d3 commit 3652a1c

File tree

4 files changed

+43
-38
lines changed

4 files changed

+43
-38
lines changed

.github/workflows/build-release.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build/release
2+
3+
on: push
4+
5+
jobs:
6+
release:
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
matrix:
11+
os: [macos-latest, windows-latest]
12+
13+
steps:
14+
- name: Check out Git repository
15+
uses: actions/checkout@v1
16+
17+
- name: Install Node.js, NPM and Yarn
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: 16
21+
22+
- name: Build/release Electron app
23+
uses: Yan-Jobs/action-electron-builder@v1.7.0
24+
with:
25+
# GitHub token, automatically provided to the action
26+
# (No need to define this secret in the repo settings)
27+
github_token: ${{ secrets.github_token }}
28+
29+
# If the commit is tagged with a version (e.g. "v1.0.0"),
30+
# release the app after building
31+
release: ${{ startsWith(github.ref, 'refs/tags/v') }}

README.md

+10-29
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,15 @@
1-
# recorder-recruiting360grad
1+
# Recorder Recruiting360grad
22

3-
An Electron application with Svelte and TypeScript
3+
An Electron application with Svelte and TypeScript to record videos for recruiting360grad.
44

5-
## Recommended IDE Setup
5+
## Release
66

7-
- [VSCode](https://code.visualstudio.com/) + [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) + [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode)
7+
When you want to create a new release, follow these steps:
88

9-
## Project Setup
9+
1. Update the version in the project's package.json file (e.g. 1.2.3)
10+
1. Commit that change (`git commit -am v1.2.3`)
11+
1. Tag the commit (`git tag v1.2.3`). Make sure your tag name's format is `v*.*.*` The workflow will use this tag to detect when to create a release
12+
1. Push the changes to GitHub (`git push && git push --tags`)
13+
1. Edit and publish the release draft created by the workflow in GitHub
1014

11-
### Install
12-
13-
```bash
14-
$ npm install
15-
```
16-
17-
### Development
18-
19-
```bash
20-
$ npm run dev
21-
```
22-
23-
### Build
24-
25-
```bash
26-
# For windows
27-
$ npm run build:win
28-
29-
# For macOS
30-
$ npm run build:mac
31-
32-
# For Linux
33-
$ npm run build:linux
34-
```
15+
After building successfully, the action will publish the release artifacts in a new release draft that will be created on GitHub with download links for the app.

electron-builder.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
appId: com.electron.app
1+
appId: de.exord.360grad.recorder
22
productName: Phone Recorder 360°
33
directories:
44
buildResources: build
@@ -33,13 +33,6 @@ mac:
3333
notarize: false
3434
dmg:
3535
artifactName: ${name}-${version}.${ext}
36-
linux:
37-
target:
38-
- AppImage
39-
- snap
40-
- deb
41-
maintainer: electronjs.org
42-
category: Utility
4336
appImage:
4437
artifactName: ${name}-${version}.${ext}
4538
npmRebuild: false

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "recorder-recruiting360grad",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "An Electron application to record and upload phonecalls to recruiting360grad",
55
"main": "./out/main/index.js",
66
"author": "exord.de",

0 commit comments

Comments
 (0)