1
0
Fork 0

Script per gli update. Aggiunte directory all'ignore. Non creato checksum per .ver.

This commit is contained in:
Emiliano Vavassori 2022-03-30 01:06:38 +02:00
parent f2c64e195f
commit eade74c29a
3 changed files with 35 additions and 0 deletions

3
.gitignore vendored
View File

@ -1 +1,4 @@
venv
build
dist
loaih.egg-info

23
check_updates.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
pushd $(dirname $0)
# Checking if pull is successfull
git fetch origin
LC_ALL=C git status | grep -q "Your branch is up to date"; retval=$?
if [[ ${retval} -ne 0 ]]; then
# Let us update the pip installation
git pull
# for the sake of consistency, let's make the check_updates.sh script
# executable
chmod +x check_updates.sh
pip3 uninstall -y loaih
# build the actual toolkit
python3 setup.py bdist_wheel
pip3 install dist/*.whl; rv=$?
if [[ ${rv} -eq 0 ]]; then
# cleanup
rm -rf dist
fi
popd

View File

@ -199,6 +199,11 @@ class Build(object):
self.__unpackbuild__(arch)
def __unpackbuild__(self, arch, generalize = False):
if generalize and self.portable:
# Doesn't particularly make sense to build a generic portable
# version. Just skipping the specific generic build
return
# We start by filtering out tarballs from the list
buildtarballs = [ self.tarballs[arch][0] ]
@ -305,6 +310,10 @@ class Build(object):
os.chdir(self.appnamedir)
for appimage in glob.glob('*.AppImage*'):
if appimage.endswith('.ver'):
# Skipping checksums for .ver files.
continue
# See if a checksum already exist
if not os.path.exists(appimage + '.md5'):
subprocess.run("md5sum {appimage} > {appimage}.md5".format(appimage = appimage), shell=True)