cicy-desktop 2.1.150 → 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.
- package/.github/workflows/mac-app-release.yml +11 -2
- package/package.json +1 -1
- package/src/main.js +12 -7
|
@@ -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
|
package/package.json
CHANGED
package/src/main.js
CHANGED
|
@@ -1081,13 +1081,18 @@ electronApp.whenReady().then(async () => {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
|
|
1083
1083
|
// Periodic WHOLE-desktop snapshot → ~/cicy-files/desktop-snapshot/desktop.b64
|
|
1084
|
-
//
|
|
1085
|
-
//
|
|
1086
|
-
//
|
|
1087
|
-
//
|
|
1088
|
-
//
|
|
1089
|
-
// it's
|
|
1090
|
-
|
|
1084
|
+
// so the cloud (cicy-code) can read the screen via the `desktop_snapshot` tool.
|
|
1085
|
+
// Windows uses a --disable-gpu child (GDI, no prompt); linux uses scrot.
|
|
1086
|
+
//
|
|
1087
|
+
// macOS: this spawns `screencapture`, which DOES trigger the Screen-Recording TCC
|
|
1088
|
+
// prompt — and on an ad-hoc-signed build (no Apple cert) the grant never sticks, so
|
|
1089
|
+
// the prompt fires over and over. So it's OFF by default on macOS (most users —
|
|
1090
|
+
// docker/team management — don't need the agent to watch their screen). Opt in with
|
|
1091
|
+
// CICY_DESKTOP_SNAPSHOT=1. Other platforms stay on (opt out with =0).
|
|
1092
|
+
const __snapOn = process.platform === "darwin"
|
|
1093
|
+
? process.env.CICY_DESKTOP_SNAPSHOT === "1"
|
|
1094
|
+
: process.env.CICY_DESKTOP_SNAPSHOT !== "0";
|
|
1095
|
+
if (!global.__cicyDesktopSnapStarted && __snapOn) {
|
|
1091
1096
|
global.__cicyDesktopSnapStarted = true;
|
|
1092
1097
|
try {
|
|
1093
1098
|
const info = require("./utils/desktop-snapshot").startDesktopSnapshots();
|