chore(packaging): add cargo packager config file

This commit is contained in:
Suyog Tandel
2026-02-18 23:27:52 +05:30
parent 7201f18fe7
commit 3744807e74
20 changed files with 51 additions and 2 deletions
+2 -1
View File
@@ -20,4 +20,5 @@ result
# misc
docs-gpui-components
src-svelte
gpui-component
gpui-component
packaging
+4 -1
View File
@@ -1,7 +1,7 @@
[package]
name = "picoforge"
version = "0.4.0"
description = "An open source commissioning tool for Pico FIDO security keys. Developed with Rust, Tauri, and Svelte."
description = "An open source commissioning tool for Pico FIDO security keys. Developed with Rust and GPUI."
authors = ["Suyog Tandel", "PicoForge Contributers"]
license = "AGPL-3.0"
edition = "2024"
@@ -43,3 +43,6 @@ lto = true # Enables link-time-optimizations however is not stable.
opt-level = 3 # Prioritizes speed. Use `z` if you prefer small binary size.
# panic = "abort" # Higher performance by disabling panic handlers.
strip = true # Ensures debug symbols are removed.
[package.metadata.packager]
before-packaging-command = "cargo build --release"
+45
View File
@@ -0,0 +1,45 @@
name = "picoforge"
productName = "picoforge"
description = "An open source commissioning tool for Pico FIDO security keys. Developed with Rust and GPUI."
category = "Utility"
version = "0.4.0"
authors = ["Suyog Tandel", "PicoForge Contributers"]
identifier = "in.suyogtandel.picoforge"
license_file = "LICENSE"
icons = [
"./static/appIcons/in.suyogtandel.picoforge.svg",
"./static/appIcons/icon.png",
"./static/appIcons/icon.ico",
"./static/appIcons/icon.icns",
"./static/appIcons/32x32.png",
"./static/appIcons/64x64.png",
"./static/appIcons/128x128.png",
"./static/appIcons/128x128@2x.png",
"./static/appIcons/Square30x30Logo.png",
"./static/appIcons/Square44x44Logo.png",
"./static/appIcons/Square71x71Logo.png",
"./static/appIcons/Square89x89Logo.png",
"./static/appIcons/Square107x107Logo.png",
"./static/appIcons/Square142x142Logo.png",
"./static/appIcons/Square150x150Logo.png",
"./static/appIcons/Square284x284Logo.png",
"./static/appIcons/Square310x310Logo.png",
"./static/appIcons/StoreLogo.png",
]
beforePackagingCommand = "cargo build --release"
binaries = [{ main = true, path = "../../target/release/picoforge" }]
outDir = "packaging/cargoPackager"
[linux]
generateDesktopEntry = false
[appimage]
excludedLibs = ["libpcsclite*.so*"]
files = { "data/in.suyogtandel.picoforge.desktop" = "usr/share/applications/in.suyogtandel.picoforge.desktop", "static/appIcons/in.suyogtandel.picoforge-symbolic.svg" = "usr/share/icons/hicolor/symbolic/apps/in.suyogtandel.picoforge-symbolic.svg", "static/appIcons/in.suyogtandel.picoforge.svg" = "usr/share/icons/hicolor/scalable/apps/in.suyogtandel.picoforge.svg" }
# NOTE: The paths for .deb packages needs to be verified not sure about these.
[deb]
files = { "data/in.suyogtandel.picoforge.desktop" = "usr/share/applications/in.suyogtandel.picoforge.desktop", "static/appIcons/in.suyogtandel.picoforge-symbolic.svg" = "usr/share/icons/hicolor/symbolic/apps/in.suyogtandel.picoforge-symbolic.svg", "static/appIcons/in.suyogtandel.picoforge.svg" = "usr/share/icons/hicolor/scalable/apps/in.suyogtandel.picoforge.svg" }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 420 B

After

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 690 B

After

Width:  |  Height:  |  Size: 819 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 516 B

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 644 B

After

Width:  |  Height:  |  Size: 826 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 889 B

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 670 B

After

Width:  |  Height:  |  Size: 947 B

Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB