Commit graph

218 commits

Author SHA1 Message Date
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
Chris Willis-Ford
85ce509434
Merge pull request #98 from cwillisf/dark-dev-dont-hang
work around startup hang in dev on Win10 dark mode
2020-02-05 12:57:18 -08:00
Chris Willis-Ford
998132876e
Merge pull request #101 from cwillisf/fix-telemetry-modal
Fix telemetry modal
2020-02-05 09:08:45 -08:00
Christopher Willis-Ford
af029b6937 fix telemetry modal 2020-01-31 16:45:56 -08:00
Christopher Willis-Ford
d1c47e8bd0 work around startup hang in dev on Win10 dark mode
Also, add a few improvements to the way DevTools extensions get
installed.
2020-01-27 14:51:50 -08:00
Chris Willis-Ford
88b1da1533
Merge pull request #96 from cwillisf/notarize-mac-build
Notarize macOS build
2020-01-24 11:19:28 -08:00
Christopher Willis-Ford
5f5f24e722 fix unwanted menu bar on Windows 2020-01-16 18:05:53 -08:00
Christopher Willis-Ford
0b6652cde3 fix save & quit dialogs for Electron 6 API changes 2020-01-16 16:28:46 -08:00
Christopher Willis-Ford
5c2303a9b5 bubble errors out from electron-builder-wrapper 2020-01-16 12:40:20 -08:00
Christopher Willis-Ford
ccaca91bea fix code signing step for non-Store macOS build 2020-01-16 12:36:38 -08:00
Christopher Willis-Ford
9c9d7c6979 notarize non-MAS macOS build (required for 10.15) 2020-01-16 12:36:13 -08:00
Christopher Willis-Ford
6a33d411c1 enable hardened runtime for macOS builds 2020-01-16 12:36:03 -08:00
Christopher Willis-Ford
9b224115a5 fix infinite load screen introduced with Electron 6 changes 2020-01-16 08:16:23 -08:00
Chris Willis-Ford
99040d1771
Merge pull request #95 from cwillisf/fix-mas-electron-6
Fix mas electron 6
2020-01-15 15:38:07 -08:00
Christopher Willis-Ford
6aa3e013ec fix MAS build: add inherited entitlements 2020-01-15 15:15:30 -08:00
Christopher Willis-Ford
434781e89b fix MAS build: update to electron-builder@^22
We switched to Electron 6 for the MAS private API patch, but
electron-builder 20.x doesn't correctly support building Electron 6 for
MAS. A fix was introduced in version 22.0.0 of electron-builder.
See also:  electron-userland/electron-builder/pull/4154
2020-01-15 15:00:13 -08:00
Christopher Willis-Ford
075262823b 3.8.0 2020-01-15 14:10:02 -08:00
Christopher Willis-Ford
c6bdd43455 3.8.0-rc.1 2020-01-15 11:33:31 -08:00
Chris Willis-Ford
1f9001b158
Merge pull request #94 from cwillisf/electron-6
upgrade to electron@^6.1.7 with MAS patch
2020-01-15 11:28:25 -08:00
Christopher Willis-Ford
4f28d86e70 upgrade to electron@^6.1.7 with MAS patch
This version of Electron includes a patch which:
- removes the use of some private APIs which were causing Electron apps
to be rejected by the Mac App Store, but
- might cause degraded performance on Mac.
2020-01-15 11:27:06 -08:00
Chris Willis-Ford
0c23c3899e
Merge pull request #84 from LLK/dependabot/npm_and_yarn/react-dom-16.2.1
Bump react-dom from 16.2.0 to 16.2.1
2020-01-15 10:50:43 -08:00
Chris Willis-Ford
d3b269e4b2
Merge pull request #93 from LLK/paulkaplan-patch-2
Support 3.0 library syntax when fetching assets
2020-01-15 10:46:24 -08:00
Chris Willis-Ford
56f8a27848
Merge pull request #83 from LLK/paulkaplan-patch-1
Use dist path for library JSON files of GUI
2020-01-15 10:44:11 -08:00
Paul Kaplan
aa3c1abbc0
Support 3.0 library syntax when fetching assets
Fixes https://github.com/LLK/scratch-desktop/issues/92
2020-01-14 11:28:27 -05:00
Christopher Willis-Ford
96953c4acd 3.7.0 2019-11-26 13:46:27 -08:00
Christopher Willis-Ford
ba6e15a624 3.7.0-rc.1 2019-11-25 18:33:35 -08:00
Christopher Willis-Ford
e32fae831f let npm update package-lock.json
...in the hopes that npm will finally stop trying to change it.
2019-11-25 18:32:49 -08:00
Benjamin Wheeler
19196c39d4
Merge pull request #74 from benjiwheeler/manage-title
DesktopHOC manages project title, rather than wrapping with TitledHOC
2019-11-18 14:49:46 -05:00
Christopher Willis-Ford
33993cb61d add GitHub templates 2019-11-13 12:04:23 -08:00
dependabot[bot]
aa46450e74
Bump react-dom from 16.2.0 to 16.2.1
Bumps [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) from 16.2.0 to 16.2.1.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/react-dom)

Signed-off-by: dependabot[bot] <support@github.com>
2019-11-01 23:03:52 +00:00
Paul Kaplan
f11e1c4279
Use dist path for library JSON files of GUI
In conjunction with https://github.com/LLK/scratch-gui/pull/5277, since we removed /src from the published gui files
2019-11-01 11:12:17 -04:00
Ben Wheeler
43f7cd5028 add canEditTitle and projectTitle props 2019-10-28 21:56:37 -04:00
Ben Wheeler
f9e77bc508 ScratchDesktopHOC manages project title, rather than wrapping with TitledHOC 2019-10-25 15:04:09 -04:00
Chris Willis-Ford
de6a271311
Merge pull request #76 from cwillisf/skip-signing-appx
Skip signing appx
2019-09-26 09:55:41 -07:00
Chris Willis-Ford
0bf03a2199
Merge pull request #77 from cwillisf/better-project-save-detection
Better project save detection
2019-09-16 12:57:57 -07:00
Christopher Willis-Ford
1df51faa95 detect project save based on content type
Also, if saving a file is canceled, only try to cancel project save
telemetry if the save was a project save.

Also also, don't skip showing the save dialog just because a file
doesn't have an extension. Instead, just skip trying to determine
filters for the extension in this case.
2019-09-16 11:23:13 -07:00
Christopher Willis-Ford
c327bc3de4 Add comments to electron-builder-wrapper.js 2019-09-16 09:24:21 -07:00