fix brew release process
This commit is contained in:
		
							parent
							
								
									ebb716514d
								
							
						
					
					
						commit
						1323b812ce
					
				
					 4 changed files with 35 additions and 59 deletions
				
			
		| 
						 | 
				
			
			@ -23,7 +23,24 @@ fi
 | 
			
		|||
 | 
			
		||||
cd "$REPO_DIR/brew_dist"
 | 
			
		||||
# make sure archivebox.rb is up-to-date with the dependencies
 | 
			
		||||
git pull
 | 
			
		||||
git status | grep 'up to date'
 | 
			
		||||
 | 
			
		||||
echo "[+] Building Homebrew bottle"
 | 
			
		||||
brew install --build-bottle ./archivebox.rb
 | 
			
		||||
echo
 | 
			
		||||
echo "[+] Uninstalling any exisitng archivebox versions..."
 | 
			
		||||
brew uninstall archivebox || true
 | 
			
		||||
brew untap archivebox/archivebox || true
 | 
			
		||||
 | 
			
		||||
# echo "[*] Running Formula linters and test build..."
 | 
			
		||||
# brew test-bot --tap=ArchiveBox/homebrew-archivebox archivebox/archivebox/archivebox || true
 | 
			
		||||
# brew uninstall archivebox || true
 | 
			
		||||
# brew untap archivebox/archivebox || true
 | 
			
		||||
 | 
			
		||||
echo
 | 
			
		||||
echo "[+] Installing and building hombrew bottle from https://Github.com/ArchiveBox/homebrew-archivebox#main"
 | 
			
		||||
brew tap archivebox/archivebox
 | 
			
		||||
brew install --build-bottle archivebox
 | 
			
		||||
brew bottle archivebox
 | 
			
		||||
 | 
			
		||||
echo
 | 
			
		||||
echo "[√] Finished. Make sure to commit the outputted .tar.gz and bottle files!"
 | 
			
		||||
| 
						 | 
				
			
			@ -11,9 +11,20 @@ set -o pipefail
 | 
			
		|||
IFS=$'\n'
 | 
			
		||||
 | 
			
		||||
REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd .. && pwd )"
 | 
			
		||||
VERSION="$(jq -r '.version' < "$REPO_DIR/package.json")"
 | 
			
		||||
SHORT_VERSION="$(echo "$VERSION" | perl -pe 's/(\d+)\.(\d+)\.(\d+)/$1.$2/g')"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
CURRENT_PLAFORM="$(uname)"
 | 
			
		||||
REQUIRED_PLATFORM="Darwin"
 | 
			
		||||
if [[ "$CURRENT_PLAFORM" != "$REQUIRED_PLATFORM" ]]; then
 | 
			
		||||
   echo "[!] Skipping the Homebrew package build on $CURRENT_PLAFORM (it can only be run on $REQUIRED_PLATFORM)."
 | 
			
		||||
   exit 0
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
cd "$REPO_DIR"
 | 
			
		||||
 | 
			
		||||
# TODO
 | 
			
		||||
exit 0
 | 
			
		||||
./bin/build_brew.sh
 | 
			
		||||
 | 
			
		||||
git add '*.bottle.tar.gz'
 | 
			
		||||
git commit -m "add new release bottle"
 | 
			
		||||
git pull
 | 
			
		||||
git push
 | 
			
		||||
| 
						 | 
				
			
			@ -1 +1 @@
 | 
			
		|||
Subproject commit 0ccd45e90721a8a4fe1eb3719ff6ea055930ec17
 | 
			
		||||
Subproject commit ec64946796d46a31e5a4d6449908b4060edb3079
 | 
			
		||||
| 
						 | 
				
			
			@ -1,52 +0,0 @@
 | 
			
		|||
# This file is @generated by PDM.
 | 
			
		||||
# Please do not edit it manually.
 | 
			
		||||
 | 
			
		||||
appnope==0.1.3
 | 
			
		||||
asgiref==3.7.2
 | 
			
		||||
asttokens==2.4.1
 | 
			
		||||
brotli==1.1.0
 | 
			
		||||
certifi==2023.7.22
 | 
			
		||||
charset-normalizer==3.3.1
 | 
			
		||||
croniter==2.0.1
 | 
			
		||||
dateparser==1.1.8
 | 
			
		||||
decorator==5.1.1
 | 
			
		||||
django==3.1.14
 | 
			
		||||
django-auth-ldap==4.1.0
 | 
			
		||||
django-extensions==3.1.5
 | 
			
		||||
executing==2.0.1
 | 
			
		||||
homebrew-pypi-poet==0.10.0
 | 
			
		||||
idna==3.4
 | 
			
		||||
ipython==8.17.2
 | 
			
		||||
jedi==0.19.1
 | 
			
		||||
jinja2==3.1.2
 | 
			
		||||
MarkupSafe==2.1.3
 | 
			
		||||
matplotlib-inline==0.1.6
 | 
			
		||||
mutagen==1.47.0
 | 
			
		||||
mypy-extensions==1.0.0
 | 
			
		||||
parso==0.8.3
 | 
			
		||||
pexpect==4.8.0
 | 
			
		||||
prompt-toolkit==3.0.39
 | 
			
		||||
ptyprocess==0.7.0
 | 
			
		||||
pure-eval==0.2.2
 | 
			
		||||
pyasn1==0.5.0
 | 
			
		||||
pyasn1-modules==0.3.0
 | 
			
		||||
pycryptodomex==3.19.0
 | 
			
		||||
pygments==2.16.1
 | 
			
		||||
python-crontab==3.0.0
 | 
			
		||||
python-dateutil==2.8.2
 | 
			
		||||
python-ldap==3.4.3
 | 
			
		||||
pytz==2023.3.post1
 | 
			
		||||
regex==2023.10.3
 | 
			
		||||
requests==2.31.0
 | 
			
		||||
setuptools==68.2.2
 | 
			
		||||
six==1.16.0
 | 
			
		||||
sonic-client==1.0.0
 | 
			
		||||
sqlparse==0.4.4
 | 
			
		||||
stack-data==0.6.3
 | 
			
		||||
traitlets==5.13.0
 | 
			
		||||
tzlocal==5.2
 | 
			
		||||
urllib3==2.0.7
 | 
			
		||||
w3lib==2.1.2
 | 
			
		||||
wcwidth==0.2.9
 | 
			
		||||
websockets==12.0
 | 
			
		||||
yt-dlp==2023.10.13
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue