Skip to content

Commit 89de8cc

Browse files
LinuxJessiclaude
andcommitted
macOS: the Translation Editor launcher looks further for its app; release note for two apps
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1 parent c2cafa1 commit 89de8cc

2 files changed

Lines changed: 15 additions & 7 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ jobs:
132132
body: |
133133
### macOS: first launch
134134
135-
The app is ad-hoc signed, not notarized. After unzipping,
136-
right-click **Xenosaga-I-Extractor.app** → **Open** the first
137-
time (or run `xattr -dr com.apple.quarantine Xenosaga-I-Extractor.app`).
138-
After that it double-clicks normally.
135+
The apps are ad-hoc signed, not notarized. After unzipping,
136+
run this once in Terminal on the unzipped folder:
137+
`xattr -dr com.apple.quarantine Xenosaga-I-Extractor-macos`
138+
(or right-click **Xenosaga-I-Extractor.app** → **Open** the
139+
first time). After that both apps double-click normally.
140+
**Xenosaga-I-Translation-Editor.app** is a small launcher
141+
for the first app: keep the two in the same folder.

‎build.py‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,14 @@ def _make_translation_app() -> bool:
7272
# Opens the translation editor: starts the Extractor app next to this one
7373
# under its second name, which goes straight to the editor page.
7474
HERE="$(cd "$(dirname "$0")/../../.." && pwd)"
75-
REAL="$HERE/{APP.name}/Contents/MacOS/{TR_NAME}"
76-
if [ ! -x "$REAL" ]; then
77-
osascript -e 'display dialog "Keep this app in the same folder as {APP.name}: it opens the translation editor of that app." buttons {{"OK"}} default button 1 with title "Xenosaga I Translation Editor"' >/dev/null 2>&1
75+
REAL=""
76+
# next to this app first; then the usual places (a freshly downloaded app is
77+
# run by macOS from a private copy of itself, where it has no neighbours)
78+
for D in "$HERE" "/Applications" "$HOME/Applications" "$HOME/Downloads/Xenosaga-I-Extractor-macos" "$HOME/Desktop/Xenosaga-I-Extractor-macos"; do
79+
if [ -x "$D/{APP.name}/Contents/MacOS/{TR_NAME}" ]; then REAL="$D/{APP.name}/Contents/MacOS/{TR_NAME}"; break; fi
80+
done
81+
if [ -z "$REAL" ]; then
82+
osascript -e 'display dialog "This app opens the translation editor of {APP.name} and could not find it.\n\nKeep the two apps in the same folder. If they are, macOS is still holding the download in quarantine: open {APP.name} once (right-click, Open), or use its Translation editor button." buttons {{"OK"}} default button 1 with title "Xenosaga I Translation Editor"' >/dev/null 2>&1
7883
exit 1
7984
fi
8085
exec "$REAL" "$@"

0 commit comments

Comments
 (0)