cicy-desktop 2.1.151 → 2.1.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -211,8 +211,17 @@ jobs:
|
|
|
211
211
|
SCR="pkgscripts-$ARCH"; rm -rf "$SCR"; mkdir -p "$SCR"
|
|
212
212
|
cp scripts/mac-allinone/postinstall "$SCR/postinstall"; chmod +x "$SCR/postinstall"
|
|
213
213
|
PKG="cicy-desktop-$VER-$ARCH.pkg"
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
# Disable bundle relocation. Without this the macOS Installer "relocates" the
|
|
215
|
+
# install to wherever an existing com.cicy.desktop bundle already lives (e.g. a
|
|
216
|
+
# leftover copy in ~/Downloads from a tarball test) instead of /Applications —
|
|
217
|
+
# so the app vanishes from /Applications. BundleIsRelocatable=false pins it to
|
|
218
|
+
# the payload path (/Applications) no matter what's already on disk.
|
|
219
|
+
PLIST="component-$ARCH.plist"
|
|
220
|
+
pkgbuild --analyze --root "$ROOT" "$PLIST"
|
|
221
|
+
/usr/libexec/PlistBuddy -c "Set :0:BundleIsRelocatable false" "$PLIST" 2>/dev/null \
|
|
222
|
+
|| plutil -replace 0.BundleIsRelocatable -bool NO "$PLIST" || true
|
|
223
|
+
if pkgbuild --root "$ROOT" --component-plist "$PLIST" --scripts "$SCR" \
|
|
224
|
+
--identifier com.cicy.desktop --version "$VER" --install-location / "$PKG"; then
|
|
216
225
|
gh release upload "${{ steps.meta.outputs.tag }}" "$PKG" --repo "$GITHUB_REPOSITORY" --clobber
|
|
217
226
|
echo "uploaded $PKG ($(du -h "$PKG" | cut -f1))"
|
|
218
227
|
else
|