Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 31 additions & 8 deletions .github/workflows/build-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ name: Build and Release Desktop

on:
workflow_dispatch:
inputs:
target:
description: Select build target
required: true
type: choice
default: desktop
options:
- desktop

jobs:
build:
Expand Down Expand Up @@ -42,13 +50,28 @@ jobs:
- name: Install Tauri CLI globally
run: pnpm add -g @tauri-apps/cli@^2

- name: Determine app version (from Tauri)
id: app_version
- name: Determine next release version
id: next_version
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION=$(node -e "console.log(JSON.parse(require('fs').readFileSync('apps/desktop/src-tauri/tauri.conf.json','utf8')).version)")
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Detected version: $VERSION"
set -euo pipefail
latest=$(
curl -s -H "Authorization: Bearer ${GITHUB_TOKEN}" \
"https://api.github.com/repos/${{ github.repository }}/releases/latest" \
| node -e "const data = JSON.parse(require('fs').readFileSync(0, 'utf8')); console.log(data.tag_name || '')"
)
if [ -z "$latest" ] || ! [[ "$latest" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
next="v0.1.0"
else
version=${latest#v}
IFS='.' read -r major minor patch <<< "$version"
minor=$((minor + 1))
next="v${major}.${minor}.0"
fi
echo "version=$next" >> $GITHUB_OUTPUT
echo "Next release: $next"

- name: Build and release with Tauri
uses: tauri-apps/tauri-action@v0
Expand All @@ -58,8 +81,8 @@ jobs:
projectPath: apps/desktop
tauriScript: tauri
args: --bundles nsis
tagName: v${{ steps.app_version.outputs.version }}
releaseName: MiniFy v${{ steps.app_version.outputs.version }}
releaseBody: Automated release for MiniFy v${{ steps.app_version.outputs.version }}
tagName: ${{ steps.next_version.outputs.version }}
releaseName: MiniFy ${{ steps.next_version.outputs.version }}
releaseBody: Automated release for MiniFy ${{ steps.next_version.outputs.version }}
releaseDraft: false
prerelease: false
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ MiniFy is a lightweight Spotify mini player built with Tauri. It lives as a fram
- `pnpm dev` — run workspace dev tasks via Turborepo.
- `pnpm desktop:dev` — launch the Tauri app in dev mode.
- `pnpm desktop:build` — create a production desktop bundle.
- `pnpm desktop:clear` — clear app data and cached tokens.
- `pnpm www:dev` — start the Next.js site.
- `pnpm www:build` — build the Next.js site.
- `pnpm lint` — run Biome checks across the workspace.
Expand Down
3 changes: 1 addition & 2 deletions apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"build": "tsc && vite build",
"preview": "vite preview",
"tauri": "tauri",
"lint": "biome check .",
"clear": "cargo run --example clear --manifest-path ./src-tauri/Cargo.toml"
"lint": "biome check ."
},
"dependencies": {
"@phosphor-icons/react": "^2.1.10",
Expand Down
4 changes: 0 additions & 4 deletions apps/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ crate-type = ["staticlib", "cdylib", "rlib"]
name = "minify"
path = "src/main.rs"

[[example]]
name = "clear"
path = "src/bin/clear.rs"

[build-dependencies]
tauri-build = { version = "2.0", features = [] }

Expand Down
9 changes: 0 additions & 9 deletions apps/desktop/src-tauri/src/bin/clear.rs

This file was deleted.

16 changes: 14 additions & 2 deletions apps/desktop/src/ui/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

body {
background-color: rgba(10, 10, 10, 0.2);
-webkit-app-region: drag;
-webkit-app-region: no-drag;
user-select: none;
margin: 0;
overflow: hidden;
Expand All @@ -19,8 +19,20 @@ body {
top: 0;
left: 0;
right: 0;
height: 18px;
height: 40px;
-webkit-app-region: drag;
cursor: grab !important;
pointer-events: auto;
background: transparent;
z-index: 50;
}

.drag-area:hover {
cursor: grab !important;
}

.drag-area:active {
cursor: grabbing !important;
}

/* App scrollbar styling */
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"check": "biome check --write .",
"desktop:dev": "pnpm --filter desktop tauri dev",
"desktop:build": "pnpm --filter desktop build",
"desktop:clear": "pnpm --filter desktop clear",
"www:dev": "pnpm --filter www dev",
"www:build": "pnpm --filter www build"
},
Expand Down
Loading