diff --git a/Publishing.md b/Publishing.md index 3d8809b..0367eef 100644 --- a/Publishing.md +++ b/Publishing.md @@ -50,6 +50,13 @@ Steps: ``` and that should return appId of "com.thingm.blink1control2" + - Test if app is notarized: + ``` + codesign --test-requirement="=notarized" --verify --verbose myapp.app + xcrun stapler validate myapp.app + ``` + also see https://eclecticlight.co/2019/05/31/can-you-tell-whether-code-has-been-notarized/ + - To reset privacy database for particular app (to test Mac access dialogs): ``` tccutil reset All com.thingm.blink1control2 @@ -64,6 +71,16 @@ Steps: codesign -s (identity from above) /path/to/executable ``` + - In some cases, may need to sign native hared library with your developer credentials and copy it into the app: + + ``` + npm install -g electron-osx-sign + cp node_modules/node-hid/build/Release/HID.node dist/mac/ + electron-hid-toy.app/Contents/MacOS + electron-osx-sign dist/mac/electron-hid-toy.app dist/mac/electron-hid-toy.app/Contents/MacOS/HID.node + ``` + + - Windows signed apps: - Get Code Signing cert. - Export it from Firefox-ESR as .p12 file (which requires a password to encrypt) diff --git a/app/components/gui/preferencesModal.js b/app/components/gui/preferencesModal.js index 6d8acaa..418f122 100644 --- a/app/components/gui/preferencesModal.js +++ b/app/components/gui/preferencesModal.js @@ -60,7 +60,7 @@ loadSettings: function() { startupPattern: conf.readSettings('startup:startupPattern') || "", // FIXME: not used yet shortcutPrefix: conf.readSettings('startup:shortcutPrefix') || 'CommandOrControl+Shift', shortcutResetKey: conf.readSettings('startup:shortcutResetKey') || 'R', - enableDegamma: conf.readSettings('blink1Service:enableDegamma') || false, + enableGamma: conf.readSettings('blink1Service:enableGamma') || false, hostId: Blink1Service.getHostId(), blink1ToUse: conf.readSettings('blink1Service:blink1ToUse') || "0", // 0 == use first avail allowMultiBlink1: conf.readSettings('blink1Service:allowMulti') || false, @@ -93,7 +93,7 @@ saveSettings: function() { // conf.saveSettings('startup:startupPattern', this.state.startupPattern); conf.saveSettingsMem('startup:shortcutPrefix', this.state.shortcutPrefix); conf.saveSettingsMem('startup:shortcutResetKey', this.state.shortcutResetKey); - conf.saveSettingsMem('blink1Service:enableDegamma', this.state.enableDegamma); + conf.saveSettingsMem('blink1Service:enableGamma', this.state.enableGamma); conf.saveSettingsMem('blink1Service:blink1ToUse', this.state.blink1ToUse); conf.saveSettingsMem('blink1Service:allowMulti', this.state.allowMultiBlink1); conf.saveSettingsMem('apiServer:enabled', this.state.apiServerEnable); @@ -233,7 +233,7 @@ render: function() { :
}