summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpush-to-codeberg17
-rw-r--r--src/utau/openutau/APKBUILD2
2 files changed, 12 insertions, 7 deletions
diff --git a/push-to-codeberg b/push-to-codeberg
index 54b06f5..4c6e28d 100755
--- a/push-to-codeberg
+++ b/push-to-codeberg
@@ -6,11 +6,16 @@ source ~/.config/codeberg-push-env
ARCH="${CBUILD:-"${CARCH:-"x86_64"}"}"
if [[ "$ARCH" != "x86_64" ]]; then echo "Non-x86_64 architectures are currently poorly handled by Codeberg."; exit 1; fi
pushToRepo() {
- curl -fLo- --user "$API_USER:$API_KEY" --upload-file target/"$1"/"${ARCH}"/"$2"-[0-9]*.*.*-r*.apk https://codeberg.org/api/packages/"${CODEBERG_PACKAGE_REPO_USER:-"dmpmem"}"/alpine/latest-stable/"$1"
+ FILE="$(eval 'ls target/"$1"/"${ARCH}"/"$2"-[0-9]*.*.*-r*.apk' 2>/dev/null || true)"
+ if [[ -f "$FILE" ]]; then
+ echo "[$1/$2]: Publishing..."
+ curl -fLo- --user "$API_USER:$API_KEY" --upload-file "$FILE" https://codeberg.org/api/packages/"${CODEBERG_PACKAGE_REPO_USER:-"dmpmem"}"/alpine/"${ALPINE_CHANNEL:-"latest-stable"}"/"$1" && echo "\x1b[1F\x1b[2K[$1/$2]: Published"
+ else
+ echo "[$1/$2]: WARN: No file, cannot publish"
+ fi
}
pushToRepo memdmp zsh-zuwu
-if eval "file target/utau/${ARCH}/openutau-[0-9]*.*.*-r*.apk" >/dev/null 2>/dev/null; then
- pushToRepo utau openutau
- pushToRepo utau openutau-onnxruntime
- pushToRepo utau openutau-worldline
-fi
+pushToRepo memdmp airsonic-refix
+pushToRepo utau openutau
+pushToRepo utau openutau-onnxruntime
+pushToRepo utau openutau-worldline
diff --git a/src/utau/openutau/APKBUILD b/src/utau/openutau/APKBUILD
index 02710f8..bf5deee 100644
--- a/src/utau/openutau/APKBUILD
+++ b/src/utau/openutau/APKBUILD
@@ -2,7 +2,7 @@
_reponame="OpenUtau"
_repoowner="stakira"
_repourl="https://${GITHUB_CODELOAD_URL:-"codeload.github.com"}/${_repoowner}/${_reponame}" # GITHUB_CODELOAD_URL due to github not having IPv6.
-_reporef="c3ff44b01f5dcd0ef1bbdb5aa11ef1319cab3a03" # Must be a TAG OR BRANCH! Anything else may break shit.
+_reporef="c3ff44b01f5dcd0ef1bbdb5aa11ef1319cab3a03" # Must be a TAG OR COMMIT! Anything else may break shit.
_reporefdate="20250610" # YYYYMMDD of the ref
_buildtarget="Release" # or `Debug` for testing