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
32 changes: 16 additions & 16 deletions .github/scripts/aur-bin.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#!/bin/bash
cp PKGBUILD PKGBUILD-BIN
if [ ! -f "PKGBUILD" ]; then
echo "Error: PKGBUILD does not exist"
exit 1
fi

if [ ! -f "PKGBUILD-BIN" ]; then
echo "Error: PKGBUILD-BIN does not exist"
exit 1
fi

sed -i 's/pkgname=rustmius/pkgname=rustmius-bin/g' PKGBUILD-BIN
sed -i 's/depends=('\''rust'\'' '\''cargo'\'' '\''pkg-config'\'' '\''libadwaita'\'' '\''gtk4'\'')/depends=('\''libadwaita'\'' '\''gtk4'\'')/g' PKGBUILD-BIN
#sed -i 's|source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")|source=("$pkgname-$pkgver::$url/releases/download/v$pkgver/rustmius" "rustmius.desktop::$url/raw/v$pkgver/rustmius.desktop" "rustmius.png::$url/raw/v$pkgver/rustmius.png")|g' PKGBUILD-BIN
sed -i 's|source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")|source=("$pkgname-$pkgver::$url/releases/download/v$pkgver/rustmius" "rustmius.desktop::$url/raw/v$pkgver/rustmius.desktop" "README.md::$url/raw/v$pkgver/README.md")|g' PKGBUILD-BIN
sed -i 's/sha256sums=('\''SKIP'\'')/sha256sums=('\''SKIP'\'' '\''SKIP'\'' '\''SKIP'\'')/g' PKGBUILD-BIN
VERSION=$(grep "^pkgver=" PKGBUILD | cut -d'=' -f2)
if [ -z "$VERSION" ]; then
echo "Error: Impossible to extract the version from PKGBUILD"
exit 1
fi

echo "Version found: $VERSION"

sed -i '/^prepare()/,/^}/d' PKGBUILD-BIN
sed -i '/^package()/,/^}/d' PKGBUILD-BIN
sed -i "s/^pkgver=.*/pkgver=$VERSION/" PKGBUILD-BIN

cat >> PKGBUILD-BIN << 'EOF'
package() {
install -Dm755 "$pkgname-$pkgver" "$pkgdir/usr/bin/rustmius"
install -Dm644 rustmius.desktop "$pkgdir/usr/share/applications/rustmius.desktop"
#install -Dm644 rustmius.png "$pkgdir/usr/share/icons/hicolor/512x512/apps/rustmius.png"
install -Dm644 README.md "$pkgdir/usr/share/doc/rustmius/README.md"
}
EOF
echo "Version updated in PKGBUILD-BIN: $VERSION"
14 changes: 7 additions & 7 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
pkgname=rustmius
pkgver=1.3.2
pkgver=1.3.3
pkgrel=1
pkgdesc="Full local Termius alternative for Linux"
arch=('x86_64')
url="https://github.com/Cleboost/Rustmius"
license=('MIT')
#depends=('rust' 'cargo' 'pkg-config' 'libadwaita' 'gtk4')
depends=('cairo' 'desktop-file-utils' 'gdk-pixbuf2' 'glib2' 'gtk3' 'hicolor-icon-theme' 'libsoup' 'pango' 'webkit2gtk-4.1')
makedepends=('git' 'openssl' 'appmenu-gtk-module' 'libappindicator-gtk3' 'librsvg' 'cargo' 'nodejs' 'pnpm')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('SKIP')

prepare() {
cd "Rustmius-$pkgver"
mv "Rustmius-$pkgver" "$pkgname-$pkgver"
cd "$pkgname-$pkgver"
pnpm i
}

build() {
cd "Rustmius-$pkgver"
cd "$pkgname-$pkgver"
pnpm tauri build --no-bundle
}

package() {
cd "Rustmius-$pkgver"
install -Dm755 src-tauri/target/release/$pkgname "$pkgdir/usr/bin/$pkgname"
cd "$pkgname-$pkgver"
install -Dm755 src-tauri/target/release/rustmius "$pkgdir/usr/bin/$pkgname"
install -Dm644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
#install -Dm644 $pkgname.png "$pkgdir/usr/share/icons/hicolor/512x512/apps/$pkgname.png"
install -Dm644 $pkgname.png "$pkgdir/usr/share/icons/hicolor/512x512/apps/$pkgname.png"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
#install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
15 changes: 10 additions & 5 deletions PKGBUILD-BIN
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
pkgname=rustmius-bin
pkgver=1.3.2
pkgver=1.3.3
pkgrel=1
pkgdesc="Full local Termius alternative for Linux"
arch=('x86_64')
url="https://github.com/Cleboost/Rustmius"
license=('MIT')
depends=('libadwaita' 'gtk4')
source=("$pkgname-$pkgver::$url/releases/download/v$pkgver/rustmius" "rustmius.desktop::$url/raw/v$pkgver/rustmius.desktop" "README.md::$url/raw/v$pkgver/README.md")
sha256sums=('SKIP' 'SKIP' 'SKIP')
source=(
"rustmius-$pkgver::$url/releases/download/v$pkgver/rustmius"
"rustmius.desktop::$url/raw/v$pkgver/rustmius.desktop"
"rustmius.png::$url/raw/v$pkgver/rustmius.png"
"README.md::$url/raw/v$pkgver/README.md"
)
sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP')


package() {
install -Dm755 "$pkgname-$pkgver" "$pkgdir/usr/bin/rustmius"
install -Dm755 "rustmius-$pkgver" "$pkgdir/usr/bin/rustmius"
install -Dm644 rustmius.desktop "$pkgdir/usr/share/applications/rustmius.desktop"
#install -Dm644 rustmius.png "$pkgdir/usr/share/icons/hicolor/512x512/apps/rustmius.png"
install -Dm644 rustmius.png "$pkgdir/usr/share/icons/hicolor/512x512/apps/rustmius.png"
install -Dm644 README.md "$pkgdir/usr/share/doc/rustmius/README.md"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rustmius",
"private": true,
"version": "1.3.2",
"version": "1.3.3",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion rustmius.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Name=Rustmius
Comment=Full local Termius alternative for Linux
Exec=rustmius
Icon=Rustmius
Icon=rustmius
Terminal=false
Type=Application
Categories=Utility;
Binary file added rustmius.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.