Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Importantus committed Dec 10, 2024
2 parents 411cbfa + d0606d3 commit 3652a1c
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 38 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build/release

on: push

jobs:
release:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, windows-latest]

steps:
- name: Check out Git repository
uses: actions/checkout@v1

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 16

- name: Build/release Electron app
uses: Yan-Jobs/[email protected]
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}

# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
39 changes: 10 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,15 @@
# recorder-recruiting360grad
# Recorder Recruiting360grad

An Electron application with Svelte and TypeScript
An Electron application with Svelte and TypeScript to record videos for recruiting360grad.

## Recommended IDE Setup
## Release

- [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)
When you want to create a new release, follow these steps:

## Project Setup
1. Update the version in the project's package.json file (e.g. 1.2.3)
1. Commit that change (`git commit -am v1.2.3`)
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
1. Push the changes to GitHub (`git push && git push --tags`)
1. Edit and publish the release draft created by the workflow in GitHub

### Install

```bash
$ npm install
```

### Development

```bash
$ npm run dev
```

### Build

```bash
# For windows
$ npm run build:win

# For macOS
$ npm run build:mac

# For Linux
$ npm run build:linux
```
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.
9 changes: 1 addition & 8 deletions electron-builder.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
appId: com.electron.app
appId: de.exord.360grad.recorder
productName: Phone Recorder 360°
directories:
buildResources: build
Expand Down Expand Up @@ -33,13 +33,6 @@ mac:
notarize: false
dmg:
artifactName: ${name}-${version}.${ext}
linux:
target:
- AppImage
- snap
- deb
maintainer: electronjs.org
category: Utility
appImage:
artifactName: ${name}-${version}.${ext}
npmRebuild: false
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "recorder-recruiting360grad",
"version": "0.0.1",
"version": "0.0.2",
"description": "An Electron application to record and upload phonecalls to recruiting360grad",
"main": "./out/main/index.js",
"author": "exord.de",
Expand Down

0 comments on commit 3652a1c

Please sign in to comment.