Skip to content

Commit

Permalink
Intial import for mac installer of arcanist
Browse files Browse the repository at this point in the history
Change-Id: Id4200c6cdfd68ab021d426ce59da741b15a8274b
  • Loading branch information
paladox committed Dec 27, 2016
1 parent 6e7d0ad commit 5c1329c
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[submodule "Arcanist/arcanist"]
path = Arcanist/arcanist
url = https://gerrit.wikimedia.org/r/phabricator/arcanist
branch = wmf/stable
[submodule "Arcanist/libphutil"]
path = Arcanist/libphutil
url = https://gerrit.wikimedia.org/r/phabricator/libphutil
branch = wmf/stable
1 change: 1 addition & 0 deletions Arcanist/arcanist
Submodule arcanist added at 9c8774
1 change: 1 addition & 0 deletions Arcanist/libphutil
Submodule libphutil added at 90fe8b
40 changes: 39 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,39 @@
# Arcanist-installer-for-mac
# Arcanist installer for mac
This is a mac installer to install Arcanist for mac

To build this for yourself do the following from bash

git init

git submodule update

then run the following script from bash (Note: You may need to do sudo ./installer.sh)

You may need to chmod these shell scripts so do the following

chmod a+x installer.sh

chmod a+x uninstaller/uninstaller.sh

chmod a+x scripts/*

chmod a+x uninstaller/scripts/*

./installer.sh

To create the uninstaller run the following script from bash (Note: You may need to do sudo ./uninstaller.sh)

cd uninstaller

./uninstaller.sh

You will find it generates two files in this folder called arcanist-installer.pkg and uninstaller/arcanist-uninstaller.pkg these files are the installer and uninstaller.

Click on arcanist-installer.pkg which will start the installation process then follow the install steps.

You will find the files installed in /private/var/arcanist/ and /private/var/libphutil/ (Note these folders are not easily accisible by the macs finder. To find them you need to
go to the finder application then on the top bar click go and then click go to folder and type in /private/var/arcanist/ or /private/var/libphutil/)

Note: You will need to restart your terminal for the changes to be applied.

in uninstaller folder you will find file arcanist-uninstaller.pkg which will uninstall arcanist from your mac.
3 changes: 3 additions & 0 deletions installer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

pkgbuild --root ./Arcanist --scripts scripts --identifier com.arcanist.arcanist --version 1 --install-location /private/var arcanist-installer.pkg
3 changes: 3 additions & 0 deletions scripts/postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

echo "/private/var/arcanist/bin" > /etc/paths.d/zmodemapp
9 changes: 9 additions & 0 deletions uninstaller/scripts/postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

rm -rf /private/var/arcanist

rm -rf /private/var/libphutil

rm -rf /private/var/arc-temp

rm /etc/paths.d/zmodemapp
3 changes: 3 additions & 0 deletions uninstaller/uninstaller.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

pkgbuild --root ../Arcanist --scripts scripts --identifier com.arcanist.arc --version 1 --install-location /private/var/arc-temp arcanist-uninstaller.pkg

0 comments on commit 5c1329c

Please sign in to comment.