[READ-ONLY] Mirror of https://github.com/probablykasper/ferrum. Music library app for Mac, Linux and Windows ferrum.kasper.space
electron linux macos music music-library music-player napi windows
0

Configure Feed

Select the types of activity you want to include in your feed.

Add ci for cross platform builds

Kasper (Aug 8, 2021, 7:50 PM +0200) 8c32ece9 e200bd81

+76 -9
+36
.github/workflows/build.yml
··· 1 + name: Build 2 + on: 3 + push: 4 + branches: 5 + - '*' 6 + tags-ignore: 7 + - '*' 8 + workflow_dispatch: 9 + env: 10 + CARGO_TERM_COLOR: always 11 + jobs: 12 + build: 13 + runs-on: ${{ matrix.os }} 14 + strategy: 15 + matrix: 16 + include: 17 + - { os: macos-latest, arg: --mac } 18 + - { os: ubuntu-latest, arg: --linux } 19 + - { os: windows-latest, arg: --windows } 20 + steps: 21 + - name: Checkout repository 22 + uses: actions/checkout@v2 23 + 24 + - name: Rust setup 25 + uses: actions-rs/toolchain@v1 26 + with: 27 + toolchain: stable 28 + 29 + - name: Node.js setup 30 + uses: actions/setup-node@v2 31 + with: 32 + node-version: 14 33 + 34 + - run: npm install && npm run napi && npm run build:web 35 + 36 + - run: npm run electron-builder -- ${{ matrix.arg }} --publish never
+35
.github/workflows/release.yml
··· 1 + name: Release 2 + on: 3 + push: 4 + tags: 5 + - 'v*' 6 + env: 7 + CARGO_TERM_COLOR: always 8 + jobs: 9 + release: 10 + runs-on: ${{ matrix.os }} 11 + strategy: 12 + matrix: 13 + include: 14 + - { os: macos-latest, arg: --mac } 15 + - { os: ubuntu-latest, arg: --linux } 16 + - { os: windows-latest, arg: --windows } 17 + steps: 18 + - name: Checkout repository 19 + uses: actions/checkout@v2 20 + 21 + - name: Rust setup 22 + uses: actions-rs/toolchain@v1 23 + with: 24 + toolchain: stable 25 + 26 + - name: Node.js setup 27 + uses: actions/setup-node@v2 28 + with: 29 + node-version: 14 30 + 31 + - run: npm install && npm run napi && npm run build:web 32 + 33 + - run: npm run electron-builder -- ${{ matrix.arg }} --publish always 34 + env: 35 + GH_TOKEN: ${{ secrets.github_token }}
+3 -6
README.md
··· 85 85 ``` 86 86 cargo check --manifest-path native/Cargo.toml 87 87 ``` 88 - 5. Commit and tag in format "v#.#.#" 89 - 6. Build the app 90 - ``` 91 - npm run build 92 - ``` 93 - 7. Create GitHub release with release notes 88 + 5. Commit with a tag in format "v#.#.#" 89 + 6. Wait for the GitHub workflow to finish successfully 90 + 7. Add release notes to the generated GitHub release and publish it
+1 -1
package.json
··· 13 13 "napi": "electron-build-env napi build --cargo-cwd ./native ./build --release", 14 14 "napi:dev": "electron-build-env napi build --cargo-cwd ./native ./build", 15 15 "build": "npm run napi && npm run build:web && electron-builder", 16 - "build-ci": "npm run napi && npm run build:web", 16 + "electron-builder": "electron-builder", 17 17 "build:web": "vite build", 18 18 "lint": "prettier --write --ignore-path .gitignore *.js *.json src", 19 19 "check": "svelte-check"
public/favicon.png

This is a binary file and will not be displayed.

+1 -2
vite.config.js
··· 2 2 import { svelte } from '@sveltejs/vite-plugin-svelte' 3 3 import sveltePreprocess from 'svelte-preprocess' 4 4 5 - console.log('VITEPORT', process.env.PORT || 8089) 6 5 export default defineConfig({ 7 6 root: './src', 8 7 base: './', // use relative paths 9 - publicDir: '../public', 8 + // publicDir: '../public', 10 9 clearScreen: false, 11 10 server: { 12 11 port: process.env.PORT || 8089,