From 42ae5e288f79bbac7ba06a94a1207194fc430320 Mon Sep 17 00:00:00 2001 From: Albrecht Lohofener Date: Mon, 2 Sep 2024 09:34:34 +0200 Subject: [PATCH] Drop travis-ci and AppVeyor support --- .appveyor.yml | 76 ---------------- .travis.yml | 172 ----------------------------------- windows/create_installer.ps1 | 71 --------------- 3 files changed, 319 deletions(-) delete mode 100644 .appveyor.yml delete mode 100644 .travis.yml delete mode 100644 windows/create_installer.ps1 diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 1c29701c..00000000 --- a/.appveyor.yml +++ /dev/null @@ -1,76 +0,0 @@ -version: 1.0.{build} - -image: Visual Studio 2022 - -init: - - set PATHORIG=%PATH% - - set MINGWPATH=C:\Qt\Tools\mingw1120_64\bin - - set PATH=C:\Qt\6.2\mingw_64\bin;%MINGWPATH%;%PATH% - - gcc -v - -before_build: - # Create datetime - - for /f "tokens=2 delims==" %%G in ('wmic os get localdatetime /value') do set datetime=%%G - - set year=%datetime:~0,4% - - set month=%datetime:~4,2% - - set day=%datetime:~6,2% - - set current_date=%year%%month%%day% - # Create git hash - - for /f %%i in ('git -C C:\projects\welle-io\ rev-parse --short HEAD') do set git_hash=%%i - # Create version - - set file_version=%current_date%_%git_hash% - # Create a build directory - - cd ..\ - - md build - # Get all headers and DLLs for the build - - git clone https://github.com/AlbrechtL/welle.io-win-libs.git - -build_script: - - cd build - - qmake ..\welle-io - - mingw32-make -j4 - -after_build: - # Prepare welle binary files - - md bin - #- copy src\welle-cli\release\welle-cli.exe bin - - copy src\welle-gui\release\welle-io.exe bin - #- copy ..\welle-io\src\welle-cli\index.html bin - #- copy ..\welle-io\src\welle-cli\index.js bin - - # Create installer - - cd ..\welle-io\windows\ - - ps: .\create_installer.ps1 -welleExePath ..\..\build\bin -QTPath C:\Qt\6.2\mingw_64\bin -ToolsPath %MINGWPATH% -InnoSetupPath "C:\Program Files (x86)\Inno Setup 6" - - # Add to artifact list - - set PATH=%PATHORIG% - - appveyor PushArtifact %welle_io_filename%.exe - -#test_script: -# - set PATH=%PATHORIG% -# - cd installer\packages\io.welle.welle\data -# - welle-io.exe --version - -deploy: - # Upload it to BinTray - #- provider: BinTray - # username: albrechtl - # api_key: - # secure: i7ksq/PodhXDzjw7trN/y00EA6U4tZ9m4EGOFDv736Nrvb6lpvG8jtXwTV4cPOtV - # subject: albrechtl - # repo: welle.io - # package: welle.io_nightly - # version: '%file_version%' - # publish: true - # override: true - # explode: true - provider: FTP - protocol: ftps - host: welle-io-nightlies.albrechtloh.de - username: welle-ci - password: - secure: Hu/HfMhc0Uhq0WOFM49YTUqoBvbXx49fMg93bOPKVhI= - -after_deploy: - # Backup: Upload it to transfer.sh - # - curl -fsS --upload-file C:\projects\welle.io-win-libs\install\%filename% https://transfer.sh/%filename% diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 544514ad..00000000 --- a/.travis.yml +++ /dev/null @@ -1,172 +0,0 @@ -dist: jammy -language: cpp -compiler: gcc - -git: - depth: false - -branches: - except: - - gh-pages - -script: - - DATE=`date +%Y%m%d` - - GIT_HASH=`git rev-parse --short HEAD` - - # Compile airspy - - wget https://github.com/airspy/host/archive/master.zip - - unzip master.zip - - cd airspyone_host-master/ - - mkdir build - - cd build - - cmake ../ -DINSTALL_UDEV_RULES=ON - - make -j 4 - - sudo make install - - cd ../.. - - # Compile librtlsdr - - git clone https://github.com/steve-m/librtlsdr.git - - cd librtlsdr - - mkdir build - - cd build - - cmake ../ -DDETACH_KERNEL_DRIVER=ON - - make -j 4 - - sudo make install - - cd ../.. - - # Compile welle.io - - mkdir build - - cd build - - $QMAKEBIN PREFIX=/usr .. - - make -j4 - - cd .. - - echo $PWD - - # Compile welle-cli - - mkdir build-cli - - cd build-cli - - cmake ../ -DBUILD_WELLE_IO=OFF -DAIRSPY=TRUE -DRTLSDR=TRUE -DSOAPYSDR=TRUE - - make -j4 - - cd .. - -jobs: - include: - - os: linux - - install: - - sudo apt-get -y install sshpass libfuse2 patchelf - - sudo apt-get -y install libusb-1.0-0-dev pkg-config libmp3lame-dev libmpg123-dev libpulse0 libfaad-dev libfftw3-dev libusb-1.0-0-dev mesa-common-dev libglu1-mesa-dev libpulse-dev libsoapysdr-dev libgstreamer-plugins-base1.0-0 libgstreamer-gl1.0-0 libxkbcommon-x11-0 libxcb-icccm4 libfontconfig1-dev libfreetype6-dev libx11-dev libx11-xcb-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libxcb-glx0-dev libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-util-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev - - # Install qt-downloader - - sudo apt-get -y install python3-pip - - sudo pip3 install pipenv - - pipenv install lxml semantic_version requests py7zr - - git clone https://github.com/engnr/qt-downloader.git - - pipenv run ./qt-downloader/qt-downloader linux desktop 6.2.4 gcc_64 --addon qtmultimedia qtcharts qt5compat --opensource - - echo $PWD - - export QMAKEBIN=$PWD/6.2.4/gcc_64/bin/qmake - - # For Flatpak - #- sudo add-apt-repository ppa:alexlarsson/flatpak -y - #- sudo apt-get update -qq - #- sudo apt-get -y install flatpak-builder elfutils - #- sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - #- sudo flatpak install -y flathub org.kde.Sdk//5.15 org.kde.Platform//5.15 - - after_success: - - sudo ldconfig - - # Get linuxdeploy - - sudo wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage -P /usr/local/bin - - sudo chmod +x /usr/local/bin/linuxdeploy-x86_64.AppImage - - sudo wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage -P /usr/local/bin - - sudo chmod +x /usr/local/bin/linuxdeploy-plugin-qt-x86_64.AppImage - - sudo wget https://raw.githubusercontent.com/linuxdeploy/linuxdeploy-plugin-gstreamer/master/linuxdeploy-plugin-gstreamer.sh -P /usr/local/bin - - sudo chmod +x /usr/local/bin/linuxdeploy-plugin-gstreamer.sh - - # Prepare welle.io AppImage - - find build/ - - mkdir -p ./appdir/usr/share/applications - - cp welle-io.desktop ./appdir/usr/share/applications - - mkdir -p ./appdir/usr/bin - - cp build/src/welle-gui/welle-io ./appdir/usr/bin - - mkdir -p ./appdir/usr/lib - - mkdir -p ./appdir/usr/share/icons/hicolor/512x512/apps/ - - cp src/welle-gui/icons/icon.png appdir/usr/share/icons/hicolor/512x512/apps/welle-io.png - - # Create some libraries inside QT6 to workround an expection. Maybe a bug inside linuxdeploy-x86_64.AppImage? - # See here https://github.com/linuxdeploy/linuxdeploy-plugin-qt/issues/122 - - mkdir /home/travis/build/AlbrechtL/welle.io/6.2.4/gcc_64/plugins/mediaservice - - mkdir /home/travis/build/AlbrechtL/welle.io/6.2.4/gcc_64/plugins/audio - - # Create welle.io AppImage - - echo $PWD - - QML_SOURCES_PATHS=. QMAKE=$QMAKEBIN linuxdeploy-x86_64.AppImage --appdir ./appdir --plugin qt --plugin gstreamer --output appimage - - mv welle.io-"$GIT_HASH"-x86_64.AppImage "$DATE"_"$GIT_HASH"_Linux_welle-io-x86_64.AppImage - - # Prepare welle-cli AppImage - - find build-cli/ - - mkdir -p ./appdir-cli/usr/share/applications - - cp welle-cli.desktop ./appdir-cli/usr/share/applications - - mkdir -p ./appdir-cli/usr/bin - - cp build-cli/welle-cli ./appdir-cli/usr/bin - - mkdir -p ./appdir-cli/usr/lib - - mkdir -p ./appdir-cli/usr/share/icons/hicolor/512x512/apps/ - - cp src/welle-gui/icons/icon.png appdir-cli/usr/share/icons/hicolor/512x512/apps/welle-io.png - - # Create welle-cli AppImage - - linuxdeploy-x86_64.AppImage --appdir ./appdir-cli --output appimage - - mv welle.io-cli-"$GIT_HASH"-x86_64.AppImage "$DATE"_"$GIT_HASH"_Linux_welle-io-cli-x86_64.AppImage - - # Create welle-gui Flatpak - #- sudo flatpak-builder --repo=wellerepo --force-clean fp_build io.welle.welle_io.json - #- sudo flatpak --user remote-add --no-gpg-verify welle-repo wellerepo - #- sudo flatpak --user install welle-repo io.welle.welle_io --assumeyes - #- flatpak build-bundle wellerepo welle-io.flatpak io.welle.welle_io - #- mv welle-io.flatpak "$DATE"_"$GIT_HASH"_Linux_welle-io-x86_64.flatpak - - # Upload - - sshpass -p ${SFTP_PASSWORD} scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "$DATE"_"$GIT_HASH"_Linux_welle-io-x86_64.AppImage ${SFTP_USER}@welle-io-nightlies.albrechtloh.de:/welle-io-nightlies.albrechtloh.de/ - - sshpass -p ${SFTP_PASSWORD} scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "$DATE"_"$GIT_HASH"_Linux_welle-io-cli-x86_64.AppImage ${SFTP_USER}@welle-io-nightlies.albrechtloh.de:/welle-io-nightlies.albrechtloh.de/ - #- sshpass -p ${SFTP_PASSWORD} scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "$DATE"_"$GIT_HASH"_Linux_welle-io-x86_64.flatpak ${SFTP_USER}@welle-io-nightlies.albrechtloh.de:/welle-io-nightlies.albrechtloh.de/ - - # temporary exclude - exclude: - - os: osx - osx_image: xcode13.2 - - before_install: - - brew tap pothosware/homebrew-pothos - - brew update - - brew pin ansible - - install: - - brew install fftw faad2 lame mpg123 soapysdr esolitos/ipa/sshpass qt@5 - - brew install --HEAD soapyuhd - - echo 'export PATH="/usr/local/opt/qt@5/bin:$PATH"' >> ~/.zshrc - - source ~/.zshrc - - export LIBRARY_PATH=/usr/local/lib - - after_success: - # Get macdeployqtfix - - curl -O https://raw.githubusercontent.com/arl/macdeployqtfix/master/macdeployqtfix.py - - # Prepare welle.io app - - find build - - mkdir appdir - - cp -R build/src/welle-gui/welle-io.app appdir/welle.io.app - - macdeployqt appdir/welle.io.app -qmldir=$TRAVIS_BUILD_DIR/src/welle-gui/QML - - cp /usr/local/lib/librtlsdr.0.dylib appdir/welle.io.app/Contents/Frameworks/librtlsdr.0.dylib - - install_name_tool -change @rpath/librtlsdr.0.dylib @executable_path/../Frameworks/librtlsdr.0.dylib appdir/welle.io.app/Contents/MacOS/welle-io - - python macdeployqtfix.py appdir/welle.io.app/Contents/MacOS/welle.io /usr/local/opt/qt - - # Add shortcut to Applications - - ln -s /Applications appdir/Applications - - # Build DMG - - hdiutil create welle-io.dmg -ov -volname "Install welle.io" -fs HFS+ -srcfolder appdir - - hdiutil convert welle-io.dmg -format UDZO -o "$DATE"_"$GIT_HASH"_MacOS_welle-io.dmg - - rm welle-io.dmg - - # Upload - - sshpass -p ${SFTP_PASSWORD} scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "$DATE"_"$GIT_HASH"_MacOS_welle-io.dmg ${SFTP_USER}@welle-io-nightlies.albrechtloh.de:/welle-io-nightlies.albrechtloh.de/ diff --git a/windows/create_installer.ps1 b/windows/create_installer.ps1 deleted file mode 100644 index bf319d7d..00000000 --- a/windows/create_installer.ps1 +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright (C) 2017 - 2022 -# Albrecht Lohofener (albrechtloh@gmx.de) -# -# This file is part of the welle.io. -# Many of the ideas as implemented in welle.io are derived from -# other work, made available through the GNU general Public License. -# All copyrights of the original authors are recognized. -# -# welle.io is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# welle.io is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with welle.io; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -# Parameter -param( -[string]$welleExePath = "..\..\build-welle.io-Desktop_Qt_6_2_3_MinGW_64_bit-Release\src\welle-gui\release", -[string]$QTPath = "C:\Qt\6.2.3\mingw_64\bin", -[string]$ToolsPath = "C:\Qt\Tools\mingw900_64\bin", -[string]$InnoSetupPath = "C:\Program Files (x86)\Inno Setup 6" -) - -# Get current GIT hash and date -& "git" "-C" "..\" "rev-parse" "--short" "HEAD" | Tee-Object -Variable gitHash | Out-Null -Write-Host "Current GIT hash $gitHash" -ForegroundColor Green - -$Date = Get-Date -Format FileDate -Write-Host "Current date $Date" -ForegroundColor Green - -# Set PATH -$env:path += "$QTPath;$ToolsPath;$InnoSetupPath;" - -# Delete old folder and create a new one -if(Test-Path bin) -{ - Write-Host "*** Delete old bin folder ***" -ForegroundColor Red - Remove-Item -Recurse -Force bin -} - -Write-Host "*** Create new bin folder ***" -ForegroundColor Red -New-Item -ItemType directory -Path bin - -Write-Host "*** Copy non QT DLLs from welle.io-win-libs repository ***" -ForegroundColor Red -Copy-Item ..\..\welle.io-win-libs\x64\*.dll bin -recurse - -Write-Host "*** Copy welle-io binary files ***" -ForegroundColor Red -Copy-Item $welleExePath\welle-io.exe bin - -# Deploy QT and related plugins -Write-Host "*** Deploy QT and related plugins ***" -ForegroundColor Red -& windeployqt bin\welle-io.exe --qmldir ..\src\welle-gui\QML\ --no-translations - -# For some reason windeployqt deploys the wrong DLL on AppVeyor -Copy-Item $QTPath\libgcc_s_seh-1.dll bin -Copy-Item $QTPath\libwinpthread-1.dll bin -Copy-Item $QTPath\libstdc++-6.dll bin - -# Run inno setup.exe -$Filename = $Date + "_" + $gitHash + "_Windows_welle-io-setup_x64" -& "ISCC" "/F$Filename" "installer.iss" - -# Store file name to a environment variable -$env:welle_io_filename = $Filename