Skip to content

Commit 9d9f410

Browse files
committed
changed for smalruby3-gui.
1 parent 3aa33b8 commit 9d9f410

17 files changed

+58
-476
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ npm-*
2121

2222
# don't store the assets downloaded with the `fetch` script
2323
/static/assets/
24+
/static/javascripts/setup-opal.js
2425

2526
# generated translation files
2627
/translations

LEGAL

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
LEGAL NOTICE INFORMATION
2+
------------------------
3+
4+
All the files in this distribution are covered under either the Scratch's
5+
license (see the file scratch-desktop_LICENSE) except some files mentioned below.
6+
7+
README.md

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2019, Scratch Foundation
1+
Copyright (c) 2019, Ruby Programming Shounendan
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

TRADEMARK

Lines changed: 0 additions & 1 deletion
This file was deleted.

electron-builder.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
directories:
22
buildResources: buildResources
33
output: dist
4-
appId: edu.mit.scratch.scratch-desktop
5-
productName: "Scratch Desktop"
4+
appId: jp.smalruby.smalruby3-desktop
5+
productName: "Smalruby3 Desktop"
66
mac:
77
category: public.app-category.education
88
icon: buildResources/ScratchDesktop.icns
@@ -21,8 +21,8 @@ win:
2121
- appx
2222
- nsis
2323
appx:
24-
identityName: ScratchFoundation.ScratchDesktop
25-
publisherDisplayName: "Scratch Foundation"
26-
publisher: "CN=2EC43DF1-469A-4119-9AB9-568A0A1FF65F"
24+
identityName: RubyProgrammingShounendan.Smalruby3Desktop
25+
publisherDisplayName: "Ruby Programming Shounendan"
26+
publisher: "CN=12345678-1234-1234-1234-123456789012"
2727
nsis:
2828
oneClick: false # allow user to choose per-user or per-machine

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
{
2-
"name": "scratch-desktop",
3-
"productName": "Scratch Desktop",
4-
"description": "Scratch 3.0 as a self-contained desktop application",
5-
"author": "Scratch Foundation",
6-
"version": "3.6.0",
2+
"name": "smalruby3-desktop",
3+
"productName": "Smalruby3 Desktop",
4+
"description": "Smalruby3 as a self-contained desktop application forked from [LLK/scratch-desktop](https://github.com/LLK/scratch-desktop)",
5+
"author": "Ruby Programming Shounendan",
6+
"version": "0.1.0",
77
"license": "BSD-3-Clause",
88
"scripts": {
99
"start": "electron-webpack dev --bail --display-error-details --env.minify=false",
1010
"build-gui": "node ./scripts/run-in-gui.js build",
1111
"watch-gui": "node ./scripts/run-in-gui.js watch",
1212
"clean": "rimraf ./dist/ ./static/assets/",
1313
"compile": "rimraf ./dist/ && electron-webpack --bail --display-error-details --env.minify=false",
14-
"fetch": "rimraf ./static/assets/ && mkdirp ./static/assets/ && node ./scripts/fetchMediaLibraryAssets.js",
14+
"fetch": "rimraf ./static/assets/ && mkdirp ./static/assets/ && node ./scripts/fetchMediaLibraryAssets.js && npm run fetch:setup-opal",
15+
"fetch:setup-opal": "rimraf ./static/javascripts && mkdirp ./static/javascripts && cp ./node_modules/smalruby3-gui/static/javascripts/setup-opal.js ./static/javascripts/setup-opal.js",
1516
"dist": "npm run build-gui && npm run fetch && npm run compile -p && electron-builder",
1617
"dist:dir": "npm run dist -- --dir -c.compression=store -c.mac.identity=null",
1718
"lint": "eslint --cache --color --ext .jsx,.js ."
1819
},
1920
"repository": {
2021
"type": "git",
21-
"url": "git+ssh://[email protected]/LLK/scratch-desktop.git"
22+
"url": "git+ssh://[email protected]/smalruby/smalruby3-desktop.git"
2223
},
2324
"dependencies": {
2425
"source-map-support": "^0.5.12"
@@ -55,7 +56,7 @@
5556
"react-redux": "5.0.7",
5657
"redux": "3.7.2",
5758
"rimraf": "^2.7.1",
58-
"scratch-gui": "github:LLK/scratch-gui#scratch-desktop",
59+
"smalruby3-gui": "github:smalruby/smalruby3-gui#smalruby3-desktop",
5960
"source-map-loader": "^0.2.4",
6061
"uglifyjs-webpack-plugin": "^2.1.3",
6162
"uuid": "^3.3.3",

scratch-desktop_LICENSE

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Copyright (c) 2019, Scratch Foundation
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5+
6+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7+
8+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9+
10+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11+
12+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

scripts/lib/libraries.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const backdrops = require('scratch-gui/src/lib/libraries/backdrops.json');
2-
const costumes = require('scratch-gui/src/lib/libraries/costumes.json');
3-
const sounds = require('scratch-gui/src/lib/libraries/sounds.json');
4-
const sprites = require('scratch-gui/src/lib/libraries/sprites.json');
1+
const backdrops = require('smalruby3-gui/src/lib/libraries/backdrops.json');
2+
const costumes = require('smalruby3-gui/src/lib/libraries/costumes.json');
3+
const sounds = require('smalruby3-gui/src/lib/libraries/sounds.json');
4+
const sprites = require('smalruby3-gui/src/lib/libraries/sprites.json');
55

66
const libraries = {
77
backdrops,

scripts/run-in-gui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const env = {
1616
const child = childProcess.spawnSync(
1717
'npm', args,
1818
{
19-
cwd: path.join('node_modules', 'scratch-gui'),
19+
cwd: path.join('node_modules', 'smalruby3-gui'),
2020
env,
2121
shell: true,
2222
stdio: 'inherit'

0 commit comments

Comments
 (0)