add sparkle framework and check for updates menu item.

This commit is contained in:
Kelvin Sherlock
2021-06-14 23:11:25 -04:00
parent 4144a6ad03
commit 9da9f6bd63
6 changed files with 85 additions and 3 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
VERSION=1.26.0
TAR=Sparkle-${VERSION}.tar.xz
URL=https://github.com/sparkle-project/Sparkle/releases/download/${VERSION}/Sparkle-${VERSION}.tar.xz
FRAMEWORK=Sparkle.framework
if [ -e $FRAMEWORK ] ; then exit 0 ; fi
if [ ! -e $TAR ] ; then curl -OL $URL ; fi
mkdir -p Sparkle-${VERSION}
cd Sparkle-${VERSION}
if [ ! -e $FRAMEWORK ] ; then tar xfz ../$TAR ; fi
cd ..
ditto Sparkle-${VERSION}/$FRAMEWORK $FRAMEWORK