Skip to content

Commit

Permalink
Updating build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmocuz committed Nov 21, 2024
1 parent 841b28b commit e64cd5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions makebeta
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ done
# and after installation (first time) ssh to sourceforge so the key is accepted
# ssh [email protected]

SVN_UPLOAD_USER="USERNAME"
SVN_UPLOAD_PASSWORD="PASSWORD"
UPLOAD_USER="USERNAME"
UPLOAD_PASSWORD="PASSWORD"
UPLOAD_SERVER="SERVER"
UPLOAD_PORT=PORT

lowercase(){
echo "$1" | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/"
Expand Down Expand Up @@ -86,7 +88,7 @@ fi

#################################
echo "Uploading to SourceForge...";
sshpass -p ${SVN_UPLOAD_PASSWORD} scp ${archive_file} ${archive_file}.sha256sum ${version_file} ${history_file} ${SVN_UPLOAD_USER}@web.sourceforge.net:/home/project-web/domoticz/htdocs/beta
curl -k -T "{${archive_file},${archive_file}.sha256sum,${version_file},${history_file},History.txt}" -u ${UPLOAD_USER}:${UPLOAD_PASSWORD} sftp://${UPLOAD_SERVER}:${UPLOAD_PORT}/beta/
if [ $? -ne 0 ]
then
echo "Error uploading to SourceForge!...";
Expand Down
4 changes: 3 additions & 1 deletion makerelease
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ done

UPLOAD_USER="USERNAME"
UPLOAD_PASSWORD="PASSWORD"
UPLOAD_SERVER="SERVER"
UPLOAD_PORT=PORT

lowercase(){
echo "$1" | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/"
Expand Down Expand Up @@ -86,7 +88,7 @@ fi

#################################
echo "Uploading to Cloud...";
sshpass -p ${UPLOAD_PASSWORD} scp -o User=${UPLOAD_USER} ${archive_file} ${archive_file}.sha256sum ${version_file} ${history_file} 146.185.159.228:/home/[email protected]/release
curl -k -T "{${archive_file},${archive_file}.sha256sum,${version_file},${history_file},History.txt}" -u ${UPLOAD_USER}:${UPLOAD_PASSWORD} sftp://${UPLOAD_SERVER}:${UPLOAD_PORT}/release/
if [ $? -ne 0 ]
then
echo "Error uploading to Cloud!...";
Expand Down

0 comments on commit e64cd5a

Please sign in to comment.