Commit graph

485 commits

Author SHA1 Message Date
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
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