Skip to content

Commit e93ef37

Browse files
authored
Merge pull request #203 from b5i/main
Safari extension
2 parents 4041469 + 6b53bd5 commit e93ef37

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ We're a browser extension for the Scratch website that makes Scratch look, work,
3939
There are multiple ways of installing.
4040
- Chrome: You can download from Chrome [here](https://scratchtools.app/chrome/). Then just press the Add to Chrome button, and you've downloaded ScratchTools!
4141
- Firefox/Mozilla: You can download for Firefox [here](https://scratchtools.app/firefox/). You can then just add it to Firefox, and then you have ScratchTools!
42+
- Safari (macOS, iPadOS and iOS): You can build the extension by typing `make` for macOS, and `make ios` for the iOS app (you will have to sign it on Xcode), make sure you have enabled Developer mode and allowed unsigned extensions.
4243
- GitHub: Download from GitHub [here](https://github.com/STForScratch/ScratchTools/zipball/master). If it downloads a `.zip` file, unpack it. Then, with the folder, go to `chrome://extensions`, make sure you have developer mode enabled (switch in the top right corner), and drag the downloaded folder onto the page. Make sure you've disabled other versions of ScratchTools.
4344

4445
### Building a Feature

makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
all: macos
2+
3+
clean:
4+
rm -rf safari-extension
5+
rm -rf safari-extension-build
6+
7+
ios: clean
8+
xcrun safari-web-extension-converter "$(PWD)" --project-location safari-extension --force
9+
10+
create-without-open: clean
11+
xcrun safari-web-extension-converter "$(PWD)" --project-location safari-extension --force --no-open
12+
13+
macos: create-without-open
14+
xcodebuild -workspace safari-extension/ScratchTools/ScratchTools.xcodeproj/project.xcworkspace -scheme "ScratchTools (macOS)" -configuration Debug clean build CONFIGURATION_BUILD_DIR="$(PWD)/safari-extension-build"
15+
echo "App available at $(PWD)/safari-extension-build"

0 commit comments

Comments
 (0)