Compare commits

...

4 Commits

Author SHA1 Message Date
85f199c076 updated push script 2026-05-30 10:02:48 +02:00
fd421ebd1a Updated open-video-downloader-bin to 3.2.0-2 2026-05-06 16:58:01 +02:00
5146f33bdd -bin suffix 2026-05-06 11:09:43 +02:00
4c53f01174 no updates is not an error 2026-05-06 11:09:43 +02:00
3 changed files with 17 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
pkgbase = open-video-downloader pkgbase = open-video-downloader-bin
pkgdesc = A cross-platform GUI for youtube-dl made in Rust with Tauri and Vue + Typescript pkgdesc = A cross-platform GUI for youtube-dl made in Rust with Tauri and Vue + Typescript
pkgver = 3.2.0 pkgver = 3.2.0
pkgrel = 1 pkgrel = 2
url = https://github.com/jely2002/youtube-dl-gui url = https://github.com/jely2002/youtube-dl-gui
arch = x86_64 arch = x86_64
license = AGPL3 license = AGPL3
@@ -14,4 +14,4 @@ pkgbase = open-video-downloader
source = open-video-downloader-3.2.0.deb::https://github.com/jely2002/youtube-dl-gui/releases/download/app-v3.2.0/Open.Video.Downloader_3.2.0_amd64.deb source = open-video-downloader-3.2.0.deb::https://github.com/jely2002/youtube-dl-gui/releases/download/app-v3.2.0/Open.Video.Downloader_3.2.0_amd64.deb
sha256sums = 2a0190508c5b80d2801765073385439bf6dac7749473c19f842fbd5067f18e15 sha256sums = 2a0190508c5b80d2801765073385439bf6dac7749473c19f842fbd5067f18e15
pkgname = open-video-downloader pkgname = open-video-downloader-bin

View File

@@ -4,9 +4,9 @@ _pkgname="open-video-downloader"
_srcname="youtube-dl-gui" _srcname="youtube-dl-gui"
_srcmntr="jely2002" _srcmntr="jely2002"
pkgname="${_pkgname}" pkgname="${_pkgname}-bin"
pkgver="3.2.0" pkgver="3.2.0"
pkgrel="1" pkgrel="2"
pkgdesc="A cross-platform GUI for youtube-dl made in Rust with Tauri and Vue + Typescript" pkgdesc="A cross-platform GUI for youtube-dl made in Rust with Tauri and Vue + Typescript"
url="https://github.com/${_srcmntr}/${_srcname}" url="https://github.com/${_srcmntr}/${_srcname}"
arch=("x86_64") arch=("x86_64")

22
push.sh
View File

@@ -17,7 +17,7 @@ fi
# Check version # Check version
if [ "${pkgver}" = "${oldver}" ] && [ -z "${FORCE_REBUILD}" ]; then if [ "${pkgver}" = "${oldver}" ] && [ -z "${FORCE_REBUILD}" ]; then
echo >/dev/stderr "Error: same (old) version specified - update aborted" echo >/dev/stderr "Error: same (old) version specified - update aborted"
exit 1 exit
fi fi
# Get variables from PKGBUILD # Get variables from PKGBUILD
@@ -38,27 +38,26 @@ else
fi fi
# Perform variable substitution # Perform variable substitution
url="${url//\$\{pkgname\}/$pkgname}"
url="${url//\$\{_pkgname\}/$_pkgname}" url="${url//\$\{_pkgname\}/$_pkgname}"
url="${url//\$\{_srcname\}/$_srcname}" url="${url//\$\{_srcname\}/$_srcname}"
url="${url//\$\{_srcmntr\}/$_srcmntr}" url="${url//\$\{_srcmntr\}/$_srcmntr}"
url="${url//\$\{pkgver\}/$pkgver}" url="${url//\$\{pkgver\}/$pkgver}"
_archive="${_archive//\$\{pkgname\}/$pkgname}"
_archive="${_archive//\$\{_pkgname\}/$_pkgname}" _archive="${_archive//\$\{_pkgname\}/$_pkgname}"
_archive="${_archive//\$\{pkgver\}/$pkgver}" _archive="${_archive//\$\{pkgver\}/$pkgver}"
aur_url="${aur_url//\$\{_pkgname\}/$_pkgname}" aur_url="${aur_url//\$\{_pkgname\}/$_pkgname}"
pkgname="${pkgname//\$\{_pkgname\}/$_pkgname}"
# Download archive # Download archive
wget -O ${_archive} "${url}" wget -qO ${_archive} "${url}"
# Extract icon / .desktop files if appimage # Extract icon / .desktop files if appimage
if printf '%s' "${_archive,,}" | grep -qi "appimage"; then if printf '%s' "${_archive,,}" | grep -qi "appimage"; then
chmod +x "${_archive}" chmod +x "${_archive}"
"./${_archive}" --appimage-extract "./${_archive}" --appimage-extract >/dev/null
cp "squashfs-root/${desktop}" "${newdesktop}" cp "squashfs-root/${desktop}" "${newdesktop}"
cp "squashfs-root/${icon}" "${newicon}" cp "squashfs-root/${icon}" "${newicon}"
if [ -L "squashfs-root" ]; then sed -i "/^X-AppImage-/d;/^$/d" "${newdesktop}"
rm -rf $(readlink -f squashfs-root) squashfs-root sed -i "s/^Exec=.*/Exec=${_pkgname} %U/" "${newdesktop}"
fi rm -rf $(readlink -f squashfs-root) squashfs-root
fi fi
# Calculate checksums # Calculate checksums
sha256bin=$(sha256sum ${_archive} | awk '{print $1}') sha256bin=$(sha256sum ${_archive} | awk '{print $1}')
@@ -79,7 +78,10 @@ sha256sums=(\
"'"$sha256ico"'"\ "'"$sha256ico"'"\
)' PKGBUILD )' PKGBUILD
else else
sed -i -E "s|^sha256sums=.*|sha256sums=(\"$sha256bin\")|" PKGBUILD sed -i -E "s/^sha256sums=\(\"[^\"]+\"\)/sha256sums=(\"$sha256bin\")/" PKGBUILD
fi
if [ "${pkgver}" != "${oldver}" ] && [ -n "${FORCE_REBUILD}" ]; then
sed -i -E "s/^pkgrel=\"[^\"]+\"/pkgrel=\"1\"/" PKGBUILD
fi fi
# Update .SRCINFO # Update .SRCINFO
makepkg --printsrcinfo > .SRCINFO makepkg --printsrcinfo > .SRCINFO
@@ -94,7 +96,7 @@ fi
if [ -z "${NO_GIT_PUSH}" ]; then if [ -z "${NO_GIT_PUSH}" ]; then
# In case of fire, git commit, git push, leave building # In case of fire, git commit, git push, leave building
git add . git add .
git commit -m "Updated ${pkgname} to ${pkgver}-${pkgrel}" git commit -m "${commit_msg}"
git remote add aur ${aur_url} git remote add aur ${aur_url}
git push origin main git push origin main
git push aur main:master git push aur main:master