mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
Update automate.sh
This commit is contained in:
parent
a246d18feb
commit
9cb97222fe
@ -22,6 +22,8 @@ cd $BuildDir
|
|||||||
rm -f caddy*
|
rm -f caddy*
|
||||||
gox $Package
|
gox $Package
|
||||||
|
|
||||||
|
timestamp=$(date +%s)
|
||||||
|
|
||||||
# Zip them up with release notes and stuff
|
# Zip them up with release notes and stuff
|
||||||
mkdir -p $ReleaseDir
|
mkdir -p $ReleaseDir
|
||||||
cd $ReleaseDir
|
cd $ReleaseDir
|
||||||
@ -29,7 +31,7 @@ rm -f caddy*
|
|||||||
for f in $BuildDir/*
|
for f in $BuildDir/*
|
||||||
do
|
do
|
||||||
# Name .zip file same as binary, but strip .exe from end
|
# Name .zip file same as binary, but strip .exe from end
|
||||||
zipname=$(date +%s)_$(basename ${f%".exe"})
|
zipname=${timestamp}_$(basename ${f%".exe"})
|
||||||
if [[ $f == *"linux"* ]] || [[ $f == *"bsd"* ]]; then
|
if [[ $f == *"linux"* ]] || [[ $f == *"bsd"* ]]; then
|
||||||
zipname=${zipname}.tar.gz
|
zipname=${zipname}.tar.gz
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user