Commit graph

254 commits

Author SHA1 Message Date
Christopher Willis-Ford
62e23771db win: set WIN_CSC_LINK to filename 2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
000bff75ed support notarize with password or keychain 2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
61251d111f tell electron-builder not to publish CI builds 2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
104317bff8 build 'dist' for signed, 'distDev' for unsigned 2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
ed23e98d24 import provision profile 2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
623050a19d test early during automated builds 2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
0d3f50e790 import code-signing certificates 2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
98efe7610f work around electron-userland/electron-builder#4964 2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
9ca7f05bdb update CircleCI context name 2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
d08841382a modularize npm scripts, support non-signed builds, ... 2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
8cf475416c work around missing PATH for git-sh-setup on Windows 2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
39dbd197d6 cache the NPM cache, not node_modules
The `npm ci` command removes `node_modules` anyway, so there's no point
in caching it.
2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
245a3ec0d7 put scratch-gui install into scratch-desktop postinstall 2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
2cfca4c0ff reference scratch-gui by branch, not tag
Let package-lock.json take care of picking an exact commit.
2020-07-24 17:07:15 -07:00
Christopher Willis-Ford
1c7148607c add CircleCI build config for macOS 2020-07-24 17:05:25 -07:00
Christopher Willis-Ford
ff53e9822a add CircleCI build config for Windows 2020-07-24 17:05:25 -07:00
Christopher Willis-Ford
43daa269df fix scratch-gui dependency versions 2020-07-24 15:58:14 -07:00
Christopher Willis-Ford
9762bac510 3.12.0 2020-06-22 10:46:31 -07:00
DD Liu
c33abcba84
Update CONTRIBUTING.md 2020-06-09 17:04:00 -04:00
Christopher Willis-Ford
ba223fef2d 3.11.1 2020-06-04 00:55:21 -07:00
Christopher Willis-Ford
bc8ca72434 3.11.0 2020-06-03 17:23:53 -07:00
Christopher Willis-Ford
05e6b27793 bump scratch-gui dependency 2020-06-03 17:22:45 -07:00
Christopher Willis-Ford
c36c5c90f4 use 32-bit Electron for NSIS installer
Use 'nsis:ia32' instead of just 'nsis' for the Windows direct-download
build. This means we explicitly request a 32-bit build rather than
allowing electron-builder to default; the default is currently to make a
64-bit build.
resolves #114
2020-06-03 16:33:49 -07:00
Chris Willis-Ford
6d9ab116bb
Merge pull request #120 from cwillisf/electron-8
Electron 8 & fix App Store submission
2020-06-03 16:09:03 -07:00
Christopher Willis-Ford
8f23ef1f64 3.10.4 2020-05-22 16:25:59 -07:00
Christopher Willis-Ford
7192ffe878 fix MAS build (!!!)
apparently the `com.apple.security.app-sandbox` entitlement and the
`hardenedRuntime: true` setting are mututally exclusive with
`electron-builder`, so the hardened runtime is now only used by non-MAS
builds ('mac' but not 'mas' or 'mas-dev')
2020-05-22 16:19:05 -07:00
Christopher Willis-Ford
1bc9f570cd allow non-notarized mac build for testing
Skipping notarization isn't strictly wrong, but needs a big warning
since the build probably won't run on Catalina.
2020-05-22 16:16:56 -07:00
Christopher Willis-Ford
73a2d3e015 allow reusing render process / fix deprecation warning 2020-05-22 16:16:22 -07:00
Christopher Willis-Ford
3cdcb199bd add settings for mas-dev build 2020-05-22 15:19:28 -07:00
Christopher Willis-Ford
229c42469d use minilog for logging, like scratch-gui 2020-05-20 17:05:00 -07:00
Christopher Willis-Ford
5abc787f1b 3.10.3 2020-05-13 17:32:47 -07:00
Christopher Willis-Ford
53f7c5f577 swap MAS and DMG build order 2020-05-13 17:32:47 -07:00
Christopher Willis-Ford
89193bc6af add entitlements suggested by Electron
Hopefully these will help solve the crash that Mac App Store reviewers
are encountering...
2020-05-13 17:15:07 -07:00
Christopher Willis-Ford
5a1526c1e5 update all dependencies, resolve npm audit alerts
minor code changes required for uuid, eslint-config-scratch, and
uglifyjs-webpack-plugin
2020-05-13 14:12:14 -07:00
Christopher Willis-Ford
cd805d1cd4 update to electron@^8.2.5 2020-05-11 13:14:56 -07:00
Christopher Willis-Ford
0404f9ac7e 3.10.2 2020-04-28 15:53:23 -07:00
Christopher Willis-Ford
8a62c4adf1 use scratch-gui#scratch-desktop@v3.10.2 2020-04-28 15:33:45 -07:00
Christopher Willis-Ford
8245ffb1de 3.10.1 2020-03-30 18:18:31 -07:00
Christopher Willis-Ford
7a813c8779 bring back entitlements.mas.inherit.plist
This seems to be necessary to work around an issue:
https://github.com/electron/electron-osx-sign/issues/192
2020-03-30 18:09:59 -07:00
Christopher Willis-Ford
fdd7a8463f fix makeFullUrl for file:// on Windows 2020-03-30 18:09:03 -07:00
Christopher Willis-Ford
33a17879b2 3.10.0 2020-03-26 18:10:11 -07:00
Christopher Willis-Ford
dd6f9eb91c update scratch-gui to scratch-desktop-v3.10.0 2020-03-26 18:10:07 -07:00
Chris Willis-Ford
a67499c33e
Merge pull request #111 from cwillisf/fix-macos-camera-and-mic
macOS: request camera & microphone permissions on demand
2020-03-18 11:10:48 -07:00
Christopher Willis-Ford
7ee12dcdd8 don't return await 2020-03-17 18:59:07 -07:00
Christopher Willis-Ford
6e1bfc33f3 only call systemPreferences.askForMediaAccess if it exists 2020-03-17 18:55:40 -07:00
Christopher Willis-Ford
74968704c8 improve user experience around mic/camera permission
- ask for permission when trying to use a feature, not on startup
- if permission is denied, explain the consequence and provide a hint
  for fixing it
2020-03-17 18:55:40 -07:00
Christopher Willis-Ford
b26c0b6bd3 fix npm run dist:dir 2020-03-17 18:55:40 -07:00
Christopher Willis-Ford
af73790306 macOS: request camera and microphone access
Note `audio-input` and `camera` were already in `entitlements.plist`

Supporting changes:
- Add `allow-jit` entitlement since documentation says it's needed.
- Only use sandbox for MAS build, not for non-MAS macOS build.
  NOTE: both still use the hardened runtime, as required on Catalina.
- Remove `entitlements.inherit.plist` since it matches default settings.
- Add to `electron-builder.yaml` English descriptions for why the app
  requests access to the microphone and camera. I'm not yet sure if
  there's a way to localize these.
- Minor tweaks in `electron-builder.yaml`.
2020-03-17 18:55:40 -07:00
Christopher Willis-Ford
8222b715a7 fix lint from TitledHOC changes 2020-03-17 18:54:56 -07:00
Christopher Willis-Ford
b72aab359b 3.9.0 2020-02-28 12:00:02 -08:00