Skip to content

Commit c22fc09

Browse files
committed
fix(flathub): use correct binary name shard_ui (#46)
Tauri v2 uses the package name from Cargo.toml (shard_ui) for the binary name, not the productName (shard-launcher). Updated the install command to copy the correct binary.
1 parent 9103c20 commit c22fc09

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.github/workflows/store-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ jobs:
523523
- cd desktop && npm run build
524524
# Build Tauri/Rust backend
525525
- cd desktop/src-tauri && cargo build --release --offline
526-
# Install binary
527-
- install -Dm755 desktop/src-tauri/target/release/shard-launcher /app/bin/shard-launcher
526+
# Install binary (Tauri v2 uses package name from Cargo.toml, which is shard_ui)
527+
- install -Dm755 desktop/src-tauri/target/release/shard_ui /app/bin/shard-launcher
528528
# Install desktop file from upstream
529529
- install -Dm644 packaging/flathub/md.thomas.shard.launcher.desktop /app/share/applications/md.thomas.shard.launcher.desktop
530530
# Install icons

desktop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "shard-ui",
33
"private": true,
4-
"version": "0.1.23",
4+
"version": "0.1.24",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

desktop/src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "shard_ui"
3-
version = "0.1.23"
3+
version = "0.1.24"
44
description = "Shard launcher UI"
55
authors = ["you"]
66
edition = "2021"

desktop/src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2.0.2",
33
"productName": "Shard Launcher",
4-
"version": "0.1.23",
4+
"version": "0.1.24",
55
"identifier": "sh.shard.launcher",
66
"build": {
77
"beforeDevCommand": "bun run dev",

launcher/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "shard"
3-
version = "0.1.23"
3+
version = "0.1.24"
44
edition = "2024"
55
description = "A minimal, content-addressed Minecraft launcher"
66
license = "MIT"

0 commit comments

Comments
 (0)