diff --git a/README.md b/README.md index c8c6f27c..f415d538 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ We're a browser extension for the Scratch website that makes Scratch look, work, There are multiple ways of installing. - Chrome: You can download from Chrome [here](https://scratchtools.app/chrome/). Then just press the Add to Chrome button, and you've downloaded ScratchTools! - 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! +- 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. - 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. ### Building a Feature diff --git a/makefile b/makefile new file mode 100644 index 00000000..b89f9185 --- /dev/null +++ b/makefile @@ -0,0 +1,15 @@ +all: macos + +clean: + rm -rf safari-extension + rm -rf safari-extension-build + +ios: clean + xcrun safari-web-extension-converter "$(PWD)" --project-location safari-extension --force + +create-without-open: clean + xcrun safari-web-extension-converter "$(PWD)" --project-location safari-extension --force --no-open + +macos: create-without-open + xcodebuild -workspace safari-extension/ScratchTools/ScratchTools.xcodeproj/project.xcworkspace -scheme "ScratchTools (macOS)" -configuration Debug clean build CONFIGURATION_BUILD_DIR="$(PWD)/safari-extension-build" + echo "App available at $(PWD)/safari-extension-build"