Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
Fix MAS build shows blank white screen (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
quanglam2807 authored Dec 18, 2019
1 parent b85a6a4 commit e7bd568
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 3 deletions.
Binary file modified build-resources/embedded-development.provisionprofile
Binary file not shown.
18 changes: 18 additions & 0 deletions build-resources/entitlements.mac.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>
2 changes: 2 additions & 0 deletions build-resources/entitlements.mas.plist
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>
4 changes: 4 additions & 0 deletions packager.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ const opts = {
},
mac: {
darkModeSupport: true,
hardenedRuntime: true,
gatekeeperAssess: false,
entitlements: 'build-resources/entitlements.mac.plist',
entitlementsInherit: 'build-resources/entitlements.mac.plist',
},
mas: {
category: 'public.app-category.productivity',
Expand Down
3 changes: 1 addition & 2 deletions src/helpers/get-locale.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { getLocales } from '../senders';

let locales;
const locales = getLocales();

const getLocale = (id) => {
if (locales == null) locales = getLocales();
if (!locales[id]) {
console.log('Missing locale id', id); // eslint-disable-line no-console
return id;
Expand Down
2 changes: 1 addition & 1 deletion src/senders/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export const requestShowRequireRestartDialog = () => ipcRenderer.send('request-s

// Locale
export const getLocale = (id) => ipcRenderer.sendSync('get-locale', id);
export const getLocales = () => ipcRenderer.sendSync('get-locales');
export const getLocales = () => ipcRenderer.sendSync('get-locales');

0 comments on commit e7bd568

Please sign in to comment.