Skip to content

Commit b1f3856

Browse files
committed
linux-rust: update justfile for last two files
1 parent 99a689a commit b1f3856

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

linux-rust/Justfile

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
APP_NAME := "librepods-rust"
1+
APP_NAME := "librepods"
22
DESKTOP_FILE := "assets/me.kavishdevar.librepods.desktop"
33
ICON_FILE := "assets/icon.png"
44

@@ -19,13 +19,13 @@ prepare:
1919
mkdir -p "$tmpdir/usr/share/icons/hicolor/256x256/apps"
2020

2121
cp target/release/{{APP_NAME}} "$tmpdir/usr/bin/"
22-
cp assets/icon.png "$tmpdir/usr/share/icons/hicolor/256x256/apps/librepods-icon.png"
22+
cp assets/icon.png "$tmpdir/usr/share/icons/hicolor/256x256/apps/me.kavishdevar.librepods.png"
2323
cp {{DESKTOP_FILE}} "$tmpdir/{{APP_NAME}}.desktop"
2424

2525
printf '%s\n' \
2626
'#!/bin/bash' \
2727
'HERE="$(dirname "$(readlink -f "$0")")"' \
28-
'exec "$HERE/usr/bin/librepods-rust" "$@"' \
28+
'exec "$HERE/usr/bin/librepods" "$@"' \
2929
> "$tmpdir/AppRun"
3030

3131
chmod +x "$tmpdir/AppRun"
@@ -40,7 +40,7 @@ bundle:
4040
--appdir "$tmpdir" \
4141
--executable "$tmpdir/usr/bin/{{APP_NAME}}" \
4242
--desktop-file "$tmpdir/{{APP_NAME}}.desktop" \
43-
--icon-file "$tmpdir/usr/share/icons/hicolor/256x256/apps/librepods-icon.png"
43+
--icon-file "$tmpdir/usr/share/icons/hicolor/256x256/apps/me.kavishdevar.librepods.png"
4444

4545
build-appimage: build prepare bundle
4646
#!/usr/bin/env bash
@@ -50,3 +50,22 @@ build-appimage: build prepare bundle
5050
appimagetool "$tmpdir" "dist/LibrePods-x86_64.AppImage"
5151
rm -rf "$tmpdir" .appdir_path
5252
echo "Done!"
53+
54+
55+
tarball:
56+
#!/usr/bin/env bash
57+
set -euo pipefail
58+
cargo vendor vendor
59+
mkdir -p dist .cargo
60+
cat > .cargo/config.toml <<'EOF'
61+
[source.crates-io]
62+
replace-with = "vendored-sources"
63+
[source.vendored-sources]
64+
directory = "vendor"
65+
EOF
66+
VERSION="${1:-local}"
67+
TAR="librepods-v${VERSION}-source.tar.gz"
68+
tar -czf "dist/${TAR}" \
69+
--transform "s,^,librepods-v${VERSION}/," \
70+
Cargo.toml Cargo.lock src vendor .cargo assets flatpak
71+
echo "Created: dist/${TAR}"

0 commit comments

Comments
 (0)