Commit graph

300 commits

Author SHA1 Message Date
Christopher Willis-Ford
7c6e8a97cc Merge branch 'develop' into redo-rename 2020-09-21 10:46:47 -07:00
Christopher Willis-Ford
ac6935660a update README.md for scratch-gui build changes 2020-09-16 16:04:23 -07:00
Christopher Willis-Ford
cca18b6d67 fix paths for CopyWebpackPlugin
These files are no longer listed as dependencies of scratch-desktop so
we need to reach into scratch-gui to get them. We should find a better
solution but this will work for now.
2020-09-03 16:57:04 -07:00
Chris Willis-Ford
e0fb2d4c53
Merge pull request #148 from cwillisf/no-package-deps
remove rebuild-deps script, package-deps.json
2020-09-03 15:37:04 -07:00
Christopher Willis-Ford
61fa1d580b rebuild package-lock.json now that scratch-gui PR is merged 2020-09-03 13:04:11 -07:00
Christopher Willis-Ford
307027a873 remove rebuild-deps script, package-deps.json
These are unnecessary if scratch-gui lists its build dependencies in
`dependencies` instead of `devDependencies`.
2020-09-01 12:08:26 -07:00
Christopher Willis-Ford
6d503f2d95 3.15.0 2020-08-27 10:54:01 -07:00
Christopher Willis-Ford
e872ae7d54 update scratch-* dependencies 2020-08-27 10:53:25 -07:00
Chris Willis-Ford
48d151cce8
Merge pull request #143 from cwillisf/fix-mas-file-overwrite
fix MAS file overwrite by deleting existing file
2020-08-27 10:41:09 -07:00
Christopher Willis-Ford
e9e3f06289 save files more safely (temp then move) 2020-08-25 15:28:58 -07:00
Christopher Willis-Ford
75589099f1 fix MAS file overwrite by deleting existing file
From the code comments:
If the file exists the browser will first download to a temp file then rename to the userChosenPath.
The MAS sandbox allows accessing userChosenPath but not the temp file, so overwriting fails on MAS.
Deleting the file first could be considered risky but works around the sandbox problem.
Security bookmarks might work to fix the problem but they're only supported by async showSaveDialog.
Since we need to use showSaveDialogSync (see WARNING below) this workaround might be the best option.
2020-08-25 14:50:03 -07:00
Chris Willis-Ford
a9cfad8df8
Merge pull request #138 from cwillisf/webpack-build-gui
Use scratch-gui source instead of its build output
2020-08-24 13:33:50 -07:00
Chris Willis-Ford
5773d5b17c
Merge pull request #134 from cwillisf/allow-dev-tools-in-release-builds
allow opening dev tools in release builds
2020-08-21 07:40:27 -07:00
Christopher Willis-Ford
324427226e reduce webpack output on CI 2020-08-14 13:48:05 -07:00
Christopher Willis-Ford
1c18c98282 3.14.0 2020-08-14 13:13:26 -07:00
Christopher Willis-Ford
a26ec04491 print a warning if rebuild-deps changes deps 2020-08-14 12:01:56 -07:00
Chris Willis-Ford
ea650178cd
Merge pull request #139 from cwillisf/link-dns-override
make Scratch Link connections work w/o DNS
2020-08-13 15:12:37 -07:00
Christopher Willis-Ford
d1195c5332 make Scratch Link connections work w/o DNS
This effectively hardcodes `device-manager.scratch.mit.edu` to
`127.0.0.1` within Scratch Desktop.

Note that using "host-rules" instead of "host-resolver-rules" doesn't
work: it results in ERR_CERT_COMMON_NAME_INVALID because the browser
expects Scratch Link's certificate to list "127.0.0.1" as its host name.
Using "host-resolver-rules" means that the IP is used for the connection
only, and not for certificate validation.

See here for more details:
https://www.electronjs.org/docs/api/command-line-switches#--host-rulesrules
https://www.electronjs.org/docs/api/command-line-switches#--host-resolver-rulesrules
2020-08-12 15:54:28 -07:00
Christopher Willis-Ford
0e1c90afeb write configs to files in dist/ for debugging purposes 2020-08-11 20:08:32 -07:00
Christopher Willis-Ford
f6a336af20 update library paths 2020-08-11 20:07:49 -07:00
Christopher Willis-Ford
f3b8251408 build scratch-gui from source instead of using its build output 2020-08-11 20:07:28 -07:00
Christopher Willis-Ford
78d75dc3cf assume direct control of webpack config
Instead of overriding rules we don't want by matching the test exactly,
we now explicitly delete rules we don't want before adding any of our
custom rules.
2020-08-11 17:17:15 -07:00
Christopher Willis-Ford
b50870a992 npm run rebuild-deps 2020-08-10 18:50:14 -07:00
Christopher Willis-Ford
6f7f6bb674 add script to merge scratch-gui deps
This is in preparation for having webpack build scratch-gui source
instead of consuming its build output. This script merges the
dependencies listed in package-deps.json with those listed in
scratch-gui's package.json, using the package-deps.json version in case
of conflict, then writes the result into the `devDependencies` section
of scratch-desktop's package.json.
2020-08-10 18:46:26 -07:00
Christopher Willis-Ford
fa5312721a 3.13.1 2020-08-04 11:04:28 -07:00
Christopher Willis-Ford
c811ade1a2 allow opening dev tools in release builds 2020-08-04 11:00:28 -07:00
Chris Willis-Ford
5ce37f7510
Merge pull request #136 from cwillisf/undo-rename
Revert "Merge pull request #131 from cwillisf/rename-to-scratch"
2020-08-04 10:55:46 -07:00
Christopher Willis-Ford
8578d60311 Revert "Revert "Merge pull request #131 from cwillisf/rename-to-scratch""
This reverts commit 0817fddce1.
2020-08-04 10:43:27 -07:00
Christopher Willis-Ford
0817fddce1 Revert "Merge pull request #131 from cwillisf/rename-to-scratch"
This reverts commit 71cc32e5bf, reversing
changes made to 43daa269df.
2020-08-04 10:41:32 -07:00
Chris Willis-Ford
8f4cab598e
Merge pull request #130 from LLK/circleci
Add automated CircleCI builds
2020-08-03 13:35:45 -07:00
Christopher Willis-Ford
b17f1a6d8f add comments based on code review feedback 2020-08-03 13:18:40 -07:00
Christopher Willis-Ford
f49216f198 work around electron-userland/electron-builder#5016 2020-07-31 20:18:46 -07:00
Christopher Willis-Ford
b5b432786a replace Code-to-Learn certs with Scratch Foundation certs 2020-07-31 15:13:48 -07:00
Christopher Willis-Ford
686ba5bf0c 3.13.0 2020-07-30 08:40:19 -07:00
Christopher Willis-Ford
7053eed00f Merge branch 'develop' into circleci 2020-07-29 14:30:47 -07:00
Christopher Willis-Ford
e0dd256c45 update scratch-gui to #scratch-desktop-v3.13.0 2020-07-29 14:27:02 -07:00
Christopher Willis-Ford
025ad1b7a8 Merge branch 'develop' into circleci 2020-07-28 15:30:12 -07:00
Chris Willis-Ford
71cc32e5bf
Merge pull request #131 from cwillisf/rename-to-scratch
Rename to "Scratch" / "the Scratch app"
2020-07-28 15:24:55 -07:00
Christopher Willis-Ford
e69d5414c6 prepare CircleCI config for renaming app 2020-07-27 11:54:03 -07:00
Christopher Willis-Ford
97167537eb rename 'Scratch Desktop' to 'Scratch' / 'the Scratch app' 2020-07-27 11:43:49 -07:00
Christopher Willis-Ford
84f0701f41 override provisioning profile for mas-dev build 2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
b4ce74b002 ZIP mas-dev 2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
7c7ddd1e6c build mas-dev on CircleCI 2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
8868556cba win: unset context to fix environment size errors 2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
a4d8e3de36 fix Windows executor settings 2020-07-24 17:07:21 -07:00
Christopher Willis-Ford
472cad2172 fix support for non-signed CI builds 2020-07-24 17:07:21 -07:00
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