mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 04:57:53 +00:00
Installer builder for mac.
This commit is contained in:
parent
7eac53a178
commit
8c58635ea7
@ -57,7 +57,6 @@ case "$system" in
|
||||
./file2lz4c ext/installfiles/linux/init.d/zerotier-one linux__init_d__zerotier_one >installer-build/linux__init_d__zerotier_one.h
|
||||
|
||||
g++ -Os -o "zt1-${vmajor}_${vminor}_${revision}-linux-${machine}-install" installer.cpp ext/lz4/lz4.o ext/lz4/lz4hc.o
|
||||
|
||||
ls -l zt1-*-install
|
||||
|
||||
;;
|
||||
@ -65,6 +64,13 @@ case "$system" in
|
||||
Darwin)
|
||||
echo "Assembling OSX installer for x86/x64 (combined) and ZT1 version $vmajor.$vminor.$revision"
|
||||
|
||||
./file2lz4c ext/installfiles/linux/uninstall.sh uninstall_sh >installer-build/uninstall_sh.h
|
||||
./file2lz4c ext/bin/tap-mac/tap.kext/Contents/Info.plist tap_mac__Info_plist >installer-build/tap_mac__Info_plist.h
|
||||
./file2lz4c ext/bin/tap-mac/tap.kext/Contents/MacOS/tap tap_mac__tap >installer-build/tap_mac__tap.h
|
||||
|
||||
g++ -Os -arch i386 -o "zt1-${vmajor}_${vminor}_${revision}-mac-combined-install" installer.cpp ext/lz4/lz4.o ext/lz4/lz4hc.o
|
||||
ls -l zt1-*-install
|
||||
|
||||
;;
|
||||
|
||||
*)
|
||||
|
@ -211,17 +211,17 @@ int main(int argc,char **argv)
|
||||
|
||||
#ifdef __APPLE__
|
||||
// Write tap.kext into home folder
|
||||
sprintf(buf,"%s/tap.kext");
|
||||
sprintf(buf,"%s/tap.kext",zthome);
|
||||
mkdir(buf,0755);
|
||||
chmod(buf,0755);
|
||||
chown(buf,0,0);
|
||||
printf("mkdir %s\n",buf);
|
||||
sprintf(buf,"%s/tap.kext/Contents");
|
||||
sprintf(buf,"%s/tap.kext/Contents",zthome);
|
||||
mkdir(buf,0755);
|
||||
chmod(buf,0755);
|
||||
chown(buf,0,0);
|
||||
printf("mkdir %s\n",buf);
|
||||
sprintf(buf,"%s/tap.kext/Contents/MacOS");
|
||||
sprintf(buf,"%s/tap.kext/Contents/MacOS",zthome);
|
||||
mkdir(buf,0755);
|
||||
chmod(buf,0755);
|
||||
chown(buf,0,0);
|
||||
|
@ -43,6 +43,6 @@ file2lz4c: ext/lz4/lz4hc.o FORCE
|
||||
$(CXX) $(CXXFLAGS) -o file2lz4c file2lz4c.cpp node/Utils.cpp node/Salsa20.cpp ext/lz4/lz4hc.o
|
||||
|
||||
clean:
|
||||
rm -rf *.dSYM build-ZeroTierUI-* $(OBJS) file2lz4c zerotier-* installer-build
|
||||
rm -rf *.dSYM build-ZeroTierUI-* $(OBJS) file2lz4c zerotier-* installer-build zt1-*-install
|
||||
|
||||
FORCE:
|
||||
|
Loading…
Reference in New Issue
Block a user