mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2024-12-22 21:52:31 -05:00
Merge pull request #137 from cwillisf/redo-rename
Revert "Revert "Merge pull request #131 from cwillisf/rename-to-scratch
This commit is contained in:
commit
0c5993c841
6 changed files with 28 additions and 20 deletions
10
README.md
10
README.md
|
@ -7,10 +7,10 @@ Scratch 3.0 as a standalone desktop application
|
||||||
### A note about `scratch-gui`
|
### A note about `scratch-gui`
|
||||||
|
|
||||||
Eventually, the `scratch-desktop` branch of the Scratch GUI repository will be merged with that repository's main
|
Eventually, the `scratch-desktop` branch of the Scratch GUI repository will be merged with that repository's main
|
||||||
development line. For now, though, the `scratch-desktop` branch holds a few changes that are necessary for Scratch
|
development line. For now, though, the `scratch-desktop` branch holds a few changes that are necessary for the Scratch
|
||||||
Desktop to function correctly but are not yet merged into the main development branch. If you only intend to build or
|
app to function correctly but are not yet merged into the main development branch. If you only intend to build or work
|
||||||
work on the `scratch-desktop` repository then you can ignore this, but if you intend to work on `scratch-gui` as well,
|
on the `scratch-desktop` repository then you can ignore this, but if you intend to work on `scratch-gui` as well, make
|
||||||
make sure you use the `scratch-desktop` branch there.
|
sure you use the `scratch-desktop` branch there.
|
||||||
|
|
||||||
Previously it was necessary to explicitly build `scratch-gui` before building `scratch-desktop`. This is no longer
|
Previously it was necessary to explicitly build `scratch-gui` before building `scratch-desktop`. This is no longer
|
||||||
necessary and the related build scripts, such as `build-gui`, have been removed.
|
necessary and the related build scripts, such as `build-gui`, have been removed.
|
||||||
|
@ -56,7 +56,7 @@ Sometimes the macOS build process will result in a build which crashes on startu
|
||||||
for an entry similar to this:
|
for an entry similar to this:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
failed to parse entitlements for Scratch Desktop[12345]: OSUnserializeXML: syntax error near line 1
|
failed to parse entitlements for Scratch[12345]: OSUnserializeXML: syntax error near line 1
|
||||||
```
|
```
|
||||||
|
|
||||||
This appears to be an issue with `codesign` itself. Rebooting your computer and trying to build again might help. Yes,
|
This appears to be an issue with `codesign` itself. Rebooting your computer and trying to build again might help. Yes,
|
||||||
|
|
|
@ -2,7 +2,7 @@ directories:
|
||||||
buildResources: buildResources
|
buildResources: buildResources
|
||||||
output: dist
|
output: dist
|
||||||
appId: edu.mit.scratch.scratch-desktop
|
appId: edu.mit.scratch.scratch-desktop
|
||||||
productName: "Scratch Desktop"
|
productName: "Scratch 3"
|
||||||
publish: # empty provider list = don't publish
|
publish: # empty provider list = don't publish
|
||||||
mac:
|
mac:
|
||||||
category: public.app-category.education
|
category: public.app-category.education
|
||||||
|
@ -16,9 +16,12 @@ mac:
|
||||||
hardenedRuntime: true
|
hardenedRuntime: true
|
||||||
icon: buildResources/ScratchDesktop.icns
|
icon: buildResources/ScratchDesktop.icns
|
||||||
provisioningProfile: embedded.provisionprofile
|
provisioningProfile: embedded.provisionprofile
|
||||||
|
artifactName: "Scratch ${version}.${ext}"
|
||||||
target:
|
target:
|
||||||
- dmg
|
- dmg
|
||||||
- mas
|
- mas
|
||||||
|
dmg:
|
||||||
|
title: "Scratch ${version}"
|
||||||
mas:
|
mas:
|
||||||
category: public.app-category.education
|
category: public.app-category.education
|
||||||
entitlements: buildResources/entitlements.mas.plist
|
entitlements: buildResources/entitlements.mas.plist
|
||||||
|
@ -37,5 +40,7 @@ appx:
|
||||||
identityName: ScratchFoundation.ScratchDesktop
|
identityName: ScratchFoundation.ScratchDesktop
|
||||||
publisherDisplayName: "Scratch Foundation"
|
publisherDisplayName: "Scratch Foundation"
|
||||||
publisher: "CN=2EC43DF1-469A-4119-9AB9-568A0A1FF65F"
|
publisher: "CN=2EC43DF1-469A-4119-9AB9-568A0A1FF65F"
|
||||||
|
artifactName: "Scratch ${version}.${ext}"
|
||||||
nsis:
|
nsis:
|
||||||
oneClick: false # allow user to choose per-user or per-machine
|
oneClick: false # allow user to choose per-user or per-machine
|
||||||
|
artifactName: "Scratch ${version} Setup.${ext}"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "scratch-desktop",
|
"name": "scratch-desktop",
|
||||||
"productName": "Scratch Desktop",
|
"productName": "Scratch",
|
||||||
"description": "Scratch 3.0 as a self-contained desktop application",
|
"description": "Scratch 3.0 as a self-contained desktop application",
|
||||||
"author": "Scratch Foundation",
|
"author": "Scratch Foundation",
|
||||||
"version": "3.15.0",
|
"version": "3.15.0",
|
||||||
|
|
|
@ -7,6 +7,7 @@ import {getFilterForExtension} from './FileFilters';
|
||||||
import telemetry from './ScratchDesktopTelemetry';
|
import telemetry from './ScratchDesktopTelemetry';
|
||||||
import MacOSMenu from './MacOSMenu';
|
import MacOSMenu from './MacOSMenu';
|
||||||
import log from '../common/log.js';
|
import log from '../common/log.js';
|
||||||
|
import {productName, version} from '../../package.json';
|
||||||
|
|
||||||
// suppress deprecation warning; this will be the default in Electron 9
|
// suppress deprecation warning; this will be the default in Electron 9
|
||||||
app.allowRendererProcessReuse = true;
|
app.allowRendererProcessReuse = true;
|
||||||
|
@ -202,7 +203,7 @@ const createAboutWindow = () => {
|
||||||
height: 400,
|
height: 400,
|
||||||
parent: _windows.main,
|
parent: _windows.main,
|
||||||
search: 'route=about',
|
search: 'route=about',
|
||||||
title: 'About Scratch Desktop'
|
title: `About ${productName}`
|
||||||
});
|
});
|
||||||
return window;
|
return window;
|
||||||
};
|
};
|
||||||
|
@ -219,7 +220,7 @@ const createMainWindow = () => {
|
||||||
const window = createWindow({
|
const window = createWindow({
|
||||||
width: defaultSize.width,
|
width: defaultSize.width,
|
||||||
height: defaultSize.height,
|
height: defaultSize.height,
|
||||||
title: 'Scratch Desktop'
|
title: `${productName} ${version}` // something like "Scratch 3.14"
|
||||||
});
|
});
|
||||||
const webContents = window.webContents;
|
const webContents = window.webContents;
|
||||||
|
|
||||||
|
|
|
@ -26,16 +26,18 @@ const AboutElement = () => (
|
||||||
maxHeight: '10rem'
|
maxHeight: '10rem'
|
||||||
}}
|
}}
|
||||||
/></div>
|
/></div>
|
||||||
<h2>{productName}</h2>
|
<div style={{margin: '1.5rem'}}>
|
||||||
<div>Version {version}</div>
|
<h2>{productName}</h2>
|
||||||
<table style={{fontSize: 'x-small'}}>
|
<div>Version {version}</div>
|
||||||
{
|
<table style={{fontSize: 'x-small'}}>
|
||||||
['Electron', 'Chrome'].map(component => {
|
{
|
||||||
const componentVersion = process.versions[component.toLowerCase()];
|
['Electron', 'Chrome'].map(component => {
|
||||||
return <tr key={component}><td>{component}</td><td>{componentVersion}</td></tr>;
|
const componentVersion = process.versions[component.toLowerCase()];
|
||||||
})
|
return <tr key={component}><td>{component}</td><td>{componentVersion}</td></tr>;
|
||||||
}
|
})
|
||||||
</table>
|
}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,6 @@
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"><p class="splash">Scratch Desktop is loading...</p></div>
|
<div id="app"><p class="splash">Scratch is loading...</p></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue