diff --git a/packaging/appimage/blue-recorder-appimage.sh b/packaging/appimage/blue-recorder-appimage.sh index dd4b16e..cda747a 100755 --- a/packaging/appimage/blue-recorder-appimage.sh +++ b/packaging/appimage/blue-recorder-appimage.sh @@ -1,38 +1,49 @@ #!/bin/bash -#dist=bionic change line 40+62. -pkg2appimageVersion="1806" -#AppImageKitVersion="12" libnslversion="2.27" debpkg="libjack-jackd2-0_1.9.12~dfsg-2_amd64.deb" -debpkg2="libc6_2.27-3ubuntu1.2_amd64.deb" +debpkg2="libc6_2.27-3ubuntu1.6_amd64.deb" #Download building tools. -if [[ -f /usr/bin/wget ]] +if [[ -f /usr/bin/curl ]] then - if [[ -f pkg2appimage-1806-x86_64.AppImage ]] + if [[ -f pkg2appimage-x86_64.AppImage ]] then - echo "pkg2appimage-$pkg2appimageVersion-x86_64.AppImage found" + echo "pkg2appimage-x86_64.AppImage found." else - wget "https://github.com/AppImage/pkg2appimage/releases/download/continuous/pkg2appimage-$pkg2appimageVersion-x86_64.AppImage" + curl --tlsv1.3 --output "$PWD/pkg2appimage-x86_64.AppImage" --url "https://github.com/AppImage/pkg2appimage/releases/download/continuous/pkg2appimage-x86_64.AppImage" + #Make sure pkg2appimage is available. + if [[ -f pkg2appimage-x86_64.AppImage ]] + then + echo "pkg2appimage-x86_64.AppImage found." + else + echo "failed to download pkg2appimage-x86_64.AppImage" && exit 1 + fi fi else - echo "please install wget" && exit + echo "please install curl." && exit 1 fi if [[ -f appimagetool-x86_64.AppImage ]] then - echo "appimagetool-x86_64.AppImage found" + echo "appimagetool-x86_64.AppImage found." else - #wget "https://github.com/AppImage/AppImageKit/releases/download/$AppImageKitVersion/appimagetool-x86_64.AppImage" - wget "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" + curl --tlsv1.3 --output "$PWD/appimagetool-x86_64.AppImage" --url "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" + #Make sure appimagetool is available. + if [[ -f appimagetool-x86_64.AppImage ]] + then + echo "appimagetool-x86_64.AppImage found." + else + echo "failed to download appimagetool-x86_64.AppImage" && exit 1 + fi fi #Make exec. -chmod +x "pkg2appimage-$pkg2appimageVersion-x86_64.AppImage" +chmod +x pkg2appimage-x86_64.AppImage chmod +x appimagetool-x86_64.AppImage #Create BlueRecorder.yml file. +echo "create BlueRecorder.yml" cat > BlueRecorder.yml <