Skip to content

Commit

Permalink
feat: making it easier to record additional npm dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Dale Lane <[email protected]>
  • Loading branch information
dalelane committed Mar 9, 2023
1 parent 1add84a commit e19fcb8
Show file tree
Hide file tree
Showing 3 changed files with 57,202 additions and 3 deletions.
10 changes: 7 additions & 3 deletions 0-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ cd $SCRATCH_SRC_HOME/scratch-vm/src/extensions
ln -s $DIR/your-scratch-extension your-scratch-extension

echo "Patching Scratch source to enable extension"
# patch -d $SCRATCH_SRC_HOME/scratch-vm < $DIR/scratch-vm.patch
# patch -d $SCRATCH_SRC_HOME/scratch-gui < $DIR/scratch-gui.patch
cd $SCRATCH_SRC_HOME/scratch-vm
git apply $DIR/patches/scratch-vm.patch
mv package.json $DIR/dependencies/package.json
ln -s $DIR/dependencies/package.json .
mv package-lock.json $DIR/dependencies/package-lock.json
ln -s $DIR/dependencies/package-lock.json .
cd $SCRATCH_SRC_HOME/scratch-gui
git apply $DIR/patches/scratch-gui.patch
mkdir src/lib/libraries/extensions/yourextension

echo "Copying in the Scratch extension files"
mkdir -p src/lib/libraries/extensions/yourextension
cd src/lib/libraries/extensions/yourextension
ln -s $DIR/your-extension-background.png your-extension-background.png
ln -s $DIR/your-extension-icon.png your-extension-icon.png
Expand Down
Loading

0 comments on commit e19fcb8

Please sign in to comment.