Skip to content

Commit 8ab3e69

Browse files
committed
fixing generate release
1 parent 47ba0f4 commit 8ab3e69

File tree

4 files changed

+564
-9
lines changed

4 files changed

+564
-9
lines changed

generate-release.sh

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/bin/sh
22
# Remove old versions
3-
rm pineflash*{.deb,.rpm,.exe} 2> /dev/null
3+
rm pineflash*{.deb,.rpm,.exe,.tar*,.AppImage} 2> /dev/null
44
ver=$(grep "^version " Cargo.toml | cut -d\" -f2)
55
# files=target/release/pineflash=/usr/bin/pineflash assets/Pineflash.desktop=/usr/share/applications/Pineflash.desktop assets/pine64logo.png=/usr/share/pixmaps/pine64logo.png LICENSE=/usr/share/licenses/pineflash/LICENSE
66
arch="x86_64"
7-
cargo build --release
7+
cargo clean
88
cargo build --target x86_64-pc-windows-gnu --release
9-
cargo appimage
9+
cargo appimage --features=appimage
10+
mv target/appimage/pineflash.AppImage "./pineflash-$ver-$arch.AppImage"
1011

1112
# Generate windows release
1213
# Update version number
@@ -24,11 +25,30 @@ distrobox enter --name fedora-dev -- cargo build --release && fpm -s dir -t rpm
2425
--architecture $arch \
2526
--depends polkit \
2627
--depends dfu-util \
27-
--description "Flashing tool for pinecil soldering irons." \
28-
--url "https://github.com/Spagett1/PineFlash" \
29-
--maintainer "Spagett <[email protected]>" \
28+
-p "pineflash-fedora-$ver-$arch.rpm" \
29+
--description "flashing tool for pinecil soldering irons." \
30+
--url "https://github.com/spagett1/pineflash" \
31+
--maintainer "spagett <[email protected]>" \
32+
target/release/pineflash=/usr/bin/pineflash assets/Pineflash.desktop=/usr/share/applications/Pineflash.desktop assets/pine64logo.png=/usr/share/pixmaps/pine64logo.png LICENSE=/usr/share/licenses/pineflash/LICENSE tools/linux/blisp=/usr/bin/blisp
33+
34+
# Cleans for new environment
35+
cargo clean
36+
37+
# Generate rpm release for rhel
38+
distrobox enter --name rhel-dev -- cargo build --release && fpm -s dir -t rpm \
39+
--name pineflash \
40+
--license gpl2 \
41+
--version $ver \
42+
--architecture $arch \
43+
--depends polkit \
44+
--depends dfu-util \
45+
-p "pineflash-rhel9-$ver-$arch.rpm" \
46+
--description "flashing tool for pinecil soldering irons." \
47+
--url "https://github.com/spagett1/pineflash" \
48+
--maintainer "spagett <[email protected]>" \
3049
target/release/pineflash=/usr/bin/pineflash assets/Pineflash.desktop=/usr/share/applications/Pineflash.desktop assets/pine64logo.png=/usr/share/pixmaps/pine64logo.png LICENSE=/usr/share/licenses/pineflash/LICENSE tools/linux/blisp=/usr/bin/blisp
3150

51+
3252
# Cleans for new environment
3353
cargo clean
3454

0 commit comments

Comments
 (0)