forked from nikkuss/pkgs
fix(grimoire): dev tool popup
This commit is contained in:
@@ -73,6 +73,12 @@ in
|
||||
env.GRIMOIRE_SOCIAL_BASE_URL = "https://grimoire-social.slusheliott.workers.dev";
|
||||
|
||||
postPatch = ''
|
||||
# The app is launched via electron directly (not an electron-builder
|
||||
# package), so `app.isPackaged` is false and `is.dev` is true, which
|
||||
# auto-opens DevTools on launch. Strip that call.
|
||||
substituteInPlace electron/main/index.ts \
|
||||
--replace-fail "mainWindow.webContents.openDevTools();" ""
|
||||
|
||||
cp -r ${grimoire-social-src} ../grimoire-social
|
||||
chmod -R u+w ../grimoire-social
|
||||
|
||||
|
||||
Reference in New Issue
Block a user