1
- # scratch -desktop
1
+ # smalruby3 -desktop
2
2
3
- Scratch 3.0 as a standalone desktop application
3
+ Smalruby3 as a standalone desktop application forked from [ LLK/scratch-desktop ] ( https://github.com/LLK/scratch-desktop ) .
4
4
5
5
## Developer Instructions
6
6
7
- ### Prepare ` scratch -gui`
7
+ ### Prepare ` smalruby3 -gui`
8
8
9
- This step is temporary: eventually, the ` scratch -desktop` branch of the Scratch GUI repository will be merged with
10
- that repository's main development line. For now, though, the ` scratch -desktop` branch holds a few changes that are
9
+ This step is temporary: eventually, the ` smalruby3 -desktop` branch of the smalruby3-gui repository will be merged with
10
+ that repository's main development line. For now, though, the ` smalruby3 -desktop` branch holds a few changes that are
11
11
necessary for Scratch Desktop to function correctly but are not yet merged into the main development branch.
12
12
13
- #### Prepare ` scratch -gui` : Quick Start
13
+ #### Prepare ` smalruby3 -gui` : Quick Start
14
14
15
- 1 . Clone both ` scratch-desktop ` and ` scratch-gui `
16
- 2 . ` cd scratch-gui `
17
- 1 . ` git checkout scratch-desktop `
15
+ 1 . Clone both ` smalruby3-desktop ` and ` smalruby3-gui `
16
+ 1 . ` mkdir smalruby3 `
17
+ 2 . ` cd smalruby3 `
18
+ 3 . ` git clone https://github.com/smalruby/smalruby3-desktop.git `
19
+ 3 . ` git clone https://github.com/smalruby/smalruby3-gui.git `
20
+ 2 . ` cd smalruby3-gui `
21
+ 1 . ` git checkout smalruby3-desktop `
18
22
2 . ` npm install `
19
23
3 . ` npm link `
20
24
4 . ` cd .. `
21
- 3 . ` cd scratch -desktop `
25
+ 3 . ` cd smalruby3 -desktop `
22
26
1 . ` npm install `
23
- 2 . ` npm link scratch -gui `
27
+ 2 . ` npm link smalruby3 -gui `
24
28
3 . ` npm run build-gui ` or ` npm run watch-gui `
25
29
26
- Your copy of ` scratch-gui ` should now be ready for use with Scratch Desktop.
27
-
28
- #### Prepare ` scratch-gui ` : Detailed Version
29
-
30
- 1 . Clone the ` scratch-gui ` repository if you haven't already.
31
- 2 . Switch to the ` scratch-desktop ` branch with ` git checkout scratch-desktop `
32
- 3 . Build with ` BUILD_MODE=dist ` and ` STATIC_PATH=static ` :
33
- - macOS, WSL, or Cygwin: run ` BUILD_MODE=dist STATIC_PATH=static npm run build ` or
34
- ` BUILD_MODE=dist STATIC_PATH=static npm run watch `
35
- - Running ` npm run build-gui ` in ` scratch-desktop ` is a shortcut for this when using ` npm link ` .
36
- - CMD: run ` set BUILD_MODE=dist ` once and ` set STATIC_PATH=static ` once, then ` npm run build ` or ` npm run watch `
37
- any number of times in the same
38
- window.
39
- - PowerShell: run ` $env:BUILD_MODE = "dist" ` once and ` $env:STATIC_PATH = "static" ` once, then ` npm run build ` or
40
- ` npm run watch ` any number of times in the same window.
41
-
42
- If you have run ` npm link scratch-gui ` (or equivalent) in the ` scratch-desktop ` working directory, you may be able to
43
- accomplish the above by running ` npm run build-gui ` in the ` scratch-desktop ` directory instead of using the manual
44
- steps listed above. For active development iteration, try ` npm run watch-gui ` which will watch for changes and rebuild
45
- ` scratch-gui ` incrementally when necessary.
30
+ Your copy of ` smalruby3-gui ` should now be ready for use with Smalruby3 Desktop.
46
31
47
32
### Prepare media library assets
48
33
49
- In the ` scratch -desktop` directory, run ` npm run fetch ` . Re-run this any time you update ` scratch -gui` or make any
34
+ In the ` smalruby3 -desktop` directory, run ` npm run fetch ` . Re-run this any time you update ` smalruby3 -gui` or make any
50
35
other changes which might affect the media libraries.
51
36
52
37
### Run in development mode
@@ -61,8 +46,6 @@ Node that on macOS this will require installing various certificates.
61
46
62
47
#### Signing the NSIS installer (Windows, non-store)
63
48
64
- * This section is relevant only to members of the Scratch Team.*
65
-
66
49
By default all Windows installers are unsigned. An APPX package for the Microsoft Store shouldn't be signed: it will
67
50
be signed automatically as part of the store submission process. On the other hand, the non-Store NSIS installer
68
51
should be signed.
@@ -102,7 +85,7 @@ configuration like this:
102
85
" name" : " Desktop" ,
103
86
" type" : " node" ,
104
87
" request" : " launch" ,
105
- " cwd" : " ${workspaceFolder:scratch -desktop}" ,
88
+ " cwd" : " ${workspaceFolder:smalruby3 -desktop}" ,
106
89
" runtimeExecutable" : " npm" ,
107
90
" autoAttachChildProcesses" : true ,
108
91
" runtimeArgs" : [" start" , " --" ],
@@ -119,3 +102,4 @@ configuration like this:
119
102
]
120
103
},
121
104
```
105
+
0 commit comments