This reposirory contains the source code of SingleFile for Safari.
The extension can be downloaded from the App Store: https://apps.apple.com/us/app/singlefile-for-safari/id6444322545
- Install Xcode
- Clone or download the Xcode project as a zip file and unzip it somewhere on your machine
- Launch Xcode and open the folder where you cloned/unzipped the Xcode project
- Press the Play button in the title bar of the left panel in Xcode to build the app and install the extension in Safari
- Allow Safari to run unsigned extensions by following this procedure: https://developer.apple.com/documentation/safariservices/building-a-safari-app-extension#Enable-your-app-extension-in-Safari
- Run
./init.sh
to retrieve the source code of the extension from GitHub - Run
./build-dev.sh
(development) or./build.sh
(production) to build the extension - Build the project in Xcode
Note: When building for development, the script expects the single-file
folder to be a sibling of the SingleFile-Safari
folder.