mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
fixed script to create the .tgz and upload it
This commit is contained in:
parent
057fbfe5b8
commit
28f88a6b5c
@ -11,19 +11,19 @@ SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'`
|
|||||||
BUILD_DIR=.
|
BUILD_DIR=.
|
||||||
case $SYSTEM in
|
case $SYSTEM in
|
||||||
linux)
|
linux)
|
||||||
BUILD_DIR=linux_make
|
BUILD_DIR=linux
|
||||||
echo "Configuring to use $BUILD_DIR on GNU/Linux"
|
echo "Configuring to use $BUILD_DIR on GNU/Linux"
|
||||||
;;
|
;;
|
||||||
darwin)
|
darwin)
|
||||||
BUILD_DIR=darwin_app
|
BUILD_DIR=macosx
|
||||||
echo "Configuring to use $BUILD_DIR on Darwin/Mac OS X"
|
echo "Configuring to use $BUILD_DIR on Darwin/Mac OS X"
|
||||||
;;
|
;;
|
||||||
mingw*)
|
mingw*)
|
||||||
BUILD_DIR=win32_inno
|
BUILD_DIR=windows
|
||||||
echo "Configuring to use $BUILD_DIR on MinGW/Windows"
|
echo "Configuring to use $BUILD_DIR on MinGW/Windows"
|
||||||
;;
|
;;
|
||||||
cygwin*)
|
cygwin*)
|
||||||
BUILD_DIR=win32_inno
|
BUILD_DIR=windows
|
||||||
echo "Configuring to use $BUILD_DIR on Cygwin/Windows"
|
echo "Configuring to use $BUILD_DIR on Cygwin/Windows"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -52,15 +52,13 @@ esac
|
|||||||
cd "${auto_build_root_dir}/build/$BUILD_DIR"
|
cd "${auto_build_root_dir}/build/$BUILD_DIR"
|
||||||
./dist.sh
|
./dist.sh
|
||||||
|
|
||||||
exit
|
|
||||||
|
|
||||||
upload_build ()
|
upload_build ()
|
||||||
{
|
{
|
||||||
platform_folder=$1
|
platform_folder=$1
|
||||||
build_folder=$2
|
build_folder=$2
|
||||||
archive_format=$3
|
archive_format=$3
|
||||||
|
|
||||||
archive="${auto_build_root_dir}/packages/${platform_folder}/${build_folder}/Pd*.${archive_format}"
|
archive="${auto_build_root_dir}/build/${platform_folder}/${build_folder}/arduino*.${archive_format}"
|
||||||
|
|
||||||
echo "upload specs $1 $2 $3"
|
echo "upload specs $1 $2 $3"
|
||||||
echo "Uploading $archive"
|
echo "Uploading $archive"
|
||||||
@ -90,20 +88,16 @@ upload_build ()
|
|||||||
|
|
||||||
case $SYSTEM in
|
case $SYSTEM in
|
||||||
linux)
|
linux)
|
||||||
if [ -x /usr/bin/dpkg-deb ]; then
|
upload_build linux . tgz
|
||||||
upload_build linux_make . deb
|
|
||||||
else
|
|
||||||
upload_build linux_make build tar.bz2
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
darwin)
|
darwin)
|
||||||
upload_build darwin_app . dmg
|
upload_build macosx . zip
|
||||||
;;
|
;;
|
||||||
mingw*)
|
mingw*)
|
||||||
upload_build win32_inno Output exe
|
upload_build windows . zip
|
||||||
;;
|
;;
|
||||||
cygwin*)
|
cygwin*)
|
||||||
upload_build win32_inno Output exe
|
upload_build windows . zip
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user