Skip to content

Commit

Permalink
docs: Info for Mac users when App Translocation happens (#56)
Browse files Browse the repository at this point in the history
The reason why the downloaded app was not running is because App Translocation was placing it in a read-only filesystem at the start. Found out from portacle/portacle#22 (thanks!) that one way to address this is for the user to move the app (after they have decided it is for them, and granted it permission to open via Gatekeeper). Included some documentation in the .app (that is only apparent _after_ the Gatekeeper part, of course) to explain they need to move the app to make it work.

I had started another branch in which the data were kept outside of the app (and other path-related improvements), but sticking with this for now.
  • Loading branch information
matatk authored Sep 9, 2020
1 parent 8f1d00a commit 23c734b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
22 changes: 18 additions & 4 deletions audioquake/AudioQuake.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@

import wx

from buildlib import doset_only
from launcherlib.config import init as init_config
from launcherlib.ui.launcher import LauncherWindow
from launcherlib.ui.helpers import MsgBox
from launcherlib.ui.helpers import MsgBox, Warn


def error_hook(etype, value, trace):
Expand All @@ -26,6 +27,19 @@ def error_hook(etype, value, trace):
app = wx.App()
sys.excepthook = error_hook
chdir(getattr(sys, '_MEIPASS', path.abspath(path.dirname(__file__))))
init_config()
LauncherWindow(None, "AudioQuake and LDL Launcher").Show()
app.MainLoop()
try:
init_config()
LauncherWindow(None, "AudioQuake and LDL Launcher").Show()
app.MainLoop()
except OSError:
doset_only(mac=lambda: Warn(None, (
'The code behind AudioQuake, Level Description Language and '
"supporting tools is not signed, so it can't be verified by "
'Apple.\n\n'

'If you still want to run them, move this application somewhere '
'else on your computer and re-open it.\n\n'

"If you've already done that, you may need to grant permission "
'for the application to access certain folders, in System '
'Preferences > Security & Privacy > Privacy tab.')))
2 changes: 1 addition & 1 deletion audioquake/AudioQuake.spec
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ app = BUNDLE( # noqa 821
name='AudioQuake.app',
icon=platform_icon,
info_plist=info_plist,
bundle_identifier=None)
bundle_identifier='uk.org.agrip.AudioQuake')

0 comments on commit 23c734b

Please sign in to comment.