13 Commits

5 changed files with 12 additions and 113 deletions

View File

@@ -2,16 +2,13 @@ name: Build All Platforms
on:
push:
branches: [main]
tags:
- 'v*'
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build-windows:
runs-on: windows-latest
runs-on: [self-hosted, windows]
steps:
- name: Checkout code
uses: actions/checkout@v4
@@ -26,6 +23,8 @@ jobs:
- name: Build Windows
run: npm run dist:win
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Windows artifacts
uses: actions/upload-artifact@v4
@@ -34,7 +33,7 @@ jobs:
path: release/*.exe
build-linux:
runs-on: ubuntu-latest
runs-on: [self-hosted, linux]
steps:
- name: Checkout code
uses: actions/checkout@v4
@@ -49,6 +48,8 @@ jobs:
- name: Build Linux
run: npm run dist:linux
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Linux artifacts
uses: actions/upload-artifact@v4
@@ -58,7 +59,6 @@ jobs:
release/*.AppImage
release/*.deb
release/*.rpm
release/*.snap
release:
needs: [build-windows, build-linux]
@@ -83,7 +83,6 @@ jobs:
*.AppImage
*.deb
*.rpm
*.snap
draft: false
prerelease: false
env:

View File

@@ -1,65 +0,0 @@
name: Build Linux
on:
push:
branches: [main]
tags:
- 'v*'
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build Linux packages
run: npm run dist:linux
- name: Upload AppImage
uses: actions/upload-artifact@v4
with:
name: linux-appimage
path: release/*.AppImage
- name: Upload DEB
uses: actions/upload-artifact@v4
with:
name: linux-deb
path: release/*.deb
- name: Upload RPM
uses: actions/upload-artifact@v4
with:
name: linux-rpm
path: release/*.rpm
- name: Upload Snap
uses: actions/upload-artifact@v4
with:
name: linux-snap
path: release/*.snap
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
release/*.AppImage
release/*.deb
release/*.rpm
release/*.snap
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -1,29 +0,0 @@
name: Build/release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: windows-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install Node.js and NPM
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
github_token: ${{ secrets.github_token }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
args: --win

BIN
build/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

View File

@@ -2,7 +2,11 @@
"name": "audio-sort",
"version": "0.5.2",
"description": "Electron audio sorting application with fuzzy search, tagging, library management, and advanced waveform editing with audio splitting capabilities for WAV files.",
"author": "litruv",
"author": {
"name": "litruv",
"email": "litruv@example.com",
"url": "https://lit.ruv.wtf"
},
"main": "dist/main/main/index.js",
"type": "commonjs",
"scripts": {
@@ -72,8 +76,7 @@
"target": [
"AppImage",
"deb",
"rpm",
"snap"
"rpm"
],
"icon": "build/icon.png",
"category": "AudioVideo",
@@ -83,15 +86,6 @@
"audio/x-wav"
]
},
"snap": {
"summary": "Audio sorting and management application",
"plugs": [
"default",
"audio-playback",
"home",
"removable-media"
]
},
"extraResources": [
{
"from": "data/UCS.csv",