Compare commits

..

3 Commits

Author SHA1 Message Date
081691d1bb moved sed from PKGBUILD to push.sh
All checks were successful
Update Package Version / update (push) Successful in 25s
2026-04-10 18:44:05 +02:00
2edbc6943d no updates is not an error 2026-04-10 15:57:16 +02:00
1eadebf0a5 added workflow 2026-04-10 15:46:45 +02:00
5 changed files with 46 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
pkgbase = open-video-downloader-appimage pkgbase = open-video-downloader-appimage
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 = 2 pkgrel = 1
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
@@ -13,7 +13,7 @@ pkgbase = open-video-downloader-appimage
source = open-video-downloader.desktop source = open-video-downloader.desktop
source = open-video-downloader.png source = open-video-downloader.png
sha256sums = dffee4cfef50e8edb9be4136d5650b123e49b8a1ffd959ff3d2c42502fc391e3 sha256sums = dffee4cfef50e8edb9be4136d5650b123e49b8a1ffd959ff3d2c42502fc391e3
sha256sums = c9e49f87d6d146252a58f5de8b5451b021119c4698805228078d70d1f609d5d9 sha256sums = c08c2abedcf2b7a1692c1968babf69671e5ecf77eb2d607a8fdcf25a7d490a2d
sha256sums = 188992cbe106d0dd6e7b9c219020118a1246c3657c828f86e463617c3d6214cb sha256sums = 188992cbe106d0dd6e7b9c219020118a1246c3657c828f86e463617c3d6214cb
pkgname = open-video-downloader-appimage pkgname = open-video-downloader-appimage

View File

@@ -0,0 +1,32 @@
---
name: Update Package Version
concurrency:
group: update-package-version
cancel-in-progress: false
on:
schedule:
- cron: "0 0 * * *"
defaults:
run:
shell: bash
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: |
git config --global user.name "${GIT_NAME}"
git config --global user.email "${GIT_EMAIL}"
git config --global credential.helper store
echo "https://${GIT_EMAIL//@/%40}:${GIT_TOKEN}@git.bjphoster.com" > ~/.git-credentials
source PKGBUILD
./push.sh $(curl -L -H "Accept: application/vnd.github+json" https://api.github.com/repos/${_srcmntr}/${_srcname}/releases/latest | jq ".tag_name" | sed 's|"||g;s|app-v||')
env:
GIT_NAME: ${{ secrets.GIT_NAME }}
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}

View File

@@ -6,7 +6,7 @@ _srcmntr="jely2002"
pkgname="${_pkgname}-appimage" pkgname="${_pkgname}-appimage"
pkgver="3.2.0" pkgver="3.2.0"
pkgrel="2" pkgrel="1"
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")
@@ -23,14 +23,10 @@ provides=("open-video-downloader")
sha256sums=( sha256sums=(
"dffee4cfef50e8edb9be4136d5650b123e49b8a1ffd959ff3d2c42502fc391e3" "dffee4cfef50e8edb9be4136d5650b123e49b8a1ffd959ff3d2c42502fc391e3"
"c9e49f87d6d146252a58f5de8b5451b021119c4698805228078d70d1f609d5d9" "c08c2abedcf2b7a1692c1968babf69671e5ecf77eb2d607a8fdcf25a7d490a2d"
"188992cbe106d0dd6e7b9c219020118a1246c3657c828f86e463617c3d6214cb" "188992cbe106d0dd6e7b9c219020118a1246c3657c828f86e463617c3d6214cb"
) )
prepare() {
sed -i -e '/^X-AppImage-/d' "${srcdir}/${_pkgname}.desktop"
}
package() { package() {
install -Dm755 "${srcdir}/${_archive}" \ install -Dm755 "${srcdir}/${_archive}" \
"${pkgdir}/usr/bin/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"

View File

@@ -1,7 +1,7 @@
[Desktop Entry] [Desktop Entry]
Categories= Categories=
Comment=Download videos from all over the web. Comment=Download videos from all over the web.
Exec=reflex %U Exec=open-video-downloader
StartupWMClass=open-video-downloader StartupWMClass=open-video-downloader
Icon=open-video-downloader Icon=open-video-downloader
Name=Open Video Downloader Name=Open Video Downloader

17
push.sh
View File

@@ -38,26 +38,28 @@ 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 -qO ${_archive} "${url}" wget -O ${_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 >/dev/null "./${_archive}" --appimage-extract
cp "squashfs-root/${desktop}" "${newdesktop}" cp "squashfs-root/${desktop}" "${newdesktop}"
cp "squashfs-root/${icon}" "${newicon}" cp "squashfs-root/${icon}" "${newicon}"
sed -i "/^X-AppImage-/d;/^$/d" "${newdesktop}" sed -i -e '/^X-AppImage-/d;/^$/d' "${newdesktop}"
sed -i "s/^Exec=.*/Exec=${_pkgname} %U/" "${newdesktop}" if [ -L "squashfs-root" ]; then
rm -rf $(readlink -f squashfs-root) squashfs-root rm -rf $(readlink -f squashfs-root) squashfs-root
fi
fi fi
# Calculate checksums # Calculate checksums
sha256bin=$(sha256sum ${_archive} | awk '{print $1}') sha256bin=$(sha256sum ${_archive} | awk '{print $1}')
@@ -80,9 +82,6 @@ sha256sums=(\
else else
sed -i -E "s/^sha256sums=\(\"[^\"]+\"\)/sha256sums=(\"$sha256bin\")/" PKGBUILD sed -i -E "s/^sha256sums=\(\"[^\"]+\"\)/sha256sums=(\"$sha256bin\")/" PKGBUILD
fi fi
if [ "${pkgver}" != "${oldver}" ] && [ -n "${FORCE_REBUILD}" ]; then
sed -i -E "s/^pkgrel=\"[^\"]+\"/pkgrel=\"1\"/" PKGBUILD
fi
# Update .SRCINFO # Update .SRCINFO
makepkg --printsrcinfo > .SRCINFO makepkg --printsrcinfo > .SRCINFO
@@ -96,7 +95,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 "${commit_msg}" git commit -m "Updated ${pkgname} to ${pkgver}-${pkgrel}"
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