Commit 5aed6e94 authored by Aral Balkan's avatar Aral Balkan
Browse files

Added installation script.

parent 6e25d0b3
.DS_Store
*.safariextz
\ No newline at end of file
/Users/aral/better.fyi/builder/data/site/blockerList.json
\ No newline at end of file
#!/bin/sh
set -e
################################################################################
#
# Better Safari Extension Installer.
#
# Please make sure that Better Builder is installed before running this.
#
# You should normally not have to run this installer manually. Please do
# a full install from the main Better project to set up your development
# environment. This will ensure all dependencies are properly installed.
#
# This is Independent Technology.
#
# ▲❤ We practice Ethical Design (https://ind.ie/ethical-design)
#
# © Aral Balkan. © Ind.ie. All Rights Reserved.
# Released with love by Ind.ie under GNU AGPLv3 or later.
# Free as in freedom. Please see the LICENSE file.
#
################################################################################
#
# Flow
#
greetings(){
echo "\n❤ Installing Better Safari Extension."
}
ensureDependenciesExist(){
# None
}
installSelf(){
echo "\n · Creating symlink to the content blocking rules (blockerList.json)"
blockerListPath=Better.safariextension/blockerList.json
if ! [ -f $blockerListPath ]; then ln -s ~/better.fyi/data/site/blockerList.json $blockerListPath; fi
echo "\n · Installation complete.\n\n"
}
#
# Main
#
main(){
greetings()
ensureDependenciesExist()
installSelf()
}
\ No newline at end of file
# Better Safari Extension
## Installation
## Installation
Clone this repository and use [Safari Extension Builder](https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/UsingExtensionBuilder/UsingExtensionBuilder.html) to install it.
You should not have to install this separately. Please run a full installation from [the main Better project](https://source.ind.ie/better/better).
If you want install this separately, you must install [Better Builder](https://source.ind.ie/better/builder) separately first, then run:
`./install`
## Running
Use [Safari Extension Builder](https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/UsingExtensionBuilder/UsingExtensionBuilder.html) to install the extension.
This extension will eventually also be available on the Safari Extension Gallery.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment