Skip to content

Commit

Permalink
Better workflow now!
Browse files Browse the repository at this point in the history
  • Loading branch information
DaKnig committed Jun 1, 2024
1 parent 183badc commit 59e9a9f
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ features = ["async", "isahc_async"]

[build-dependencies]
glib-build-tools = "0.19"

[profile.release]
debug = "limited"
File renamed without changes.
36 changes: 36 additions & 0 deletions aport/APKBUILD_dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Contributor: DaKnig <[email protected]>
# Maintainer: DaKnig <[email protected]>
pkgname=dewduct
pkgver=0.2.2
pkgrel=7
_pkgcommit=5d47a81172691b4196cf4970b77c1204fb838231
pkgdesc="A privacy-focused and mobile-friendly YouTube player, a NewPipe clone for GNOME, in Rust and GTK, based on Invidious"
source="$pkgname-$_pkgcommit.zip::https://github.com/DaKnig/DewDuct/archive/$_pkgcommit.zip"
arch="all"
license="GPL-3.0-or-later"
depends="libadwaita mpv openssl yt-dlp"
makedepends="mold cargo libadwaita-dev openssl-dev rust"
url="https://github.com/DaKnig/DewDuct"
builddir="$srcdir/DewDuct-$_pkgcommit"

_appid=null.daknig.dewduct

options="!check" # currently, no tests available.

prepare() {
default_prepare
}

build() {
appstreamcli make-desktop-file data/"$_appid".metainfo.xml "$_appid".desktop
cargo build --release
}

package() {
install -D "$builddir"/target/release/"$pkgname" "$pkgdir"/usr/bin/"$pkgname"
install -D "$builddir"/data/"$_appid".metainfo.xml -t "$pkgdir"/usr/share/metainfo/
install -D "$_appid".desktop "$pkgdir"/usr/share/applications/"$_appid".desktop
}
sha512sums="
8e031f84e83cd5fc7bd0e571f68e1287ffbbe8213bda6e1be63c7d28ef8347a4bc1774c4508f275aaca679626f080a943895f9c57eaf6652238375e733691510 dewduct-5d47a81172691b4196cf4970b77c1204fb838231.zip
"
File renamed without changes.
20 changes: 16 additions & 4 deletions pmos_sideload.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,36 @@
#!/usr/bin/sh

set -Eeuo pipefail

if [ $# -ne 1 ]
then
echo "usage: $0 ssh-device-name"
exit 1
fi

# clean dir
rm -rf ~/.local/var/pmbootstrap/cache_git/pmaports/testing/
# stay updated!
echo agent setup...
eval $(ssh-agent)
ssh-add

echo pulling...
echo pmbootstrap pulling...
pmbootstrap pull
git push

mkdir -p ~/.local/var/pmbootstrap/cache_git/pmaports/testing/dewduct
cp pmaport/APKBUILD ~/.local/var/pmbootstrap/cache_git/pmaports/testing/dewduct
cp aport/APKBUILD_dev ~/.local/var/pmbootstrap/cache_git/pmaports/testing/dewduct/APKBUILD

# prepare the apk
echo checksum...
pmbootstrap checksum dewduct
cp ~/.local/var/pmbootstrap/cache_git/pmaports/testing/dewduct/APKBUILD pmaport/
cp ~/.local/var/pmbootstrap/cache_git/pmaports/testing/dewduct/APKBUILD aport/APKBUILD_dev
echo build...
pmbootstrap build --arch aarch64 dewduct --force
# hack: to avoid rsync-ing target folder (tens of gigs!) into the chrootsx
mv target .git/
pmbootstrap build --arch aarch64 dewduct --src="$PWD"
mv .git/target target
# push it
echo sideload...
scp ~/.local/var/pmbootstrap/packages/edge/aarch64/dewduct*.apk \
Expand Down

0 comments on commit 59e9a9f

Please sign in to comment.