From 898c6aa0d990ec2fa8736efe3b0ccfdcdfcb39c5 Mon Sep 17 00:00:00 2001 From: Giulio Romualdi Date: Fri, 6 Oct 2023 16:53:05 +0200 Subject: [PATCH] Remove the deployment with AppImage --- .github/workflows/appimage.yml | 67 -------------------- AppImageBuilder.yml | 111 --------------------------------- README.md | 14 ----- 3 files changed, 192 deletions(-) delete mode 100644 .github/workflows/appimage.yml delete mode 100644 AppImageBuilder.yml diff --git a/.github/workflows/appimage.yml b/.github/workflows/appimage.yml deleted file mode 100644 index d562634..0000000 --- a/.github/workflows/appimage.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Deploy appimage 📦 - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - release: - types: - - published - -jobs: - build-appimage: - - runs-on: ubuntu-20.04 - - steps: - - uses: actions/checkout@v2 - - name: install dependencies - run: | - sudo apt-get update - sudo apt-get install -y python3 python3-pkg-resources python3-pyqt5 python3-pyqt5.qtwebengine python3-pyqt5.qtmultimedia python3-qtpy libqt5multimedia5-plugins swig python3-testresources build-essential libeigen3-dev libxml2-dev coinor-libipopt-dev libassimp-dev libirrlicht-dev - - - name: Install appimage-builder - run: | - wget -O appimage-builder-x86_64.AppImage https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage - chmod +x appimage-builder-x86_64.AppImage - - # install (optional) - sudo mv appimage-builder-x86_64.AppImage /usr/local/bin/appimage-builder - - - - name: Build AppImage - run: | - appimage-builder --skip-test - - - name: move AppImage - run: | - mkdir AppImage - mv ./*.AppImage* ./AppImage - - - uses: actions/upload-artifact@v2 - with: - name: AppImage - path: 'AppImage' - - deploy_appimage: - name: 📦 Deploy the appimage - runs-on: ubuntu-20.04 - needs: [build-appimage] - if: startsWith(github.ref, 'refs/tags') - steps: - - - name: Download artifacts - uses: actions/download-artifact@v2 - with: - name: AppImage - path: AppImage - - - name: Publish appimage to release asset - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: AppImage/* - tag: ${{ github.ref }} - overwrite: true - file_glob: true diff --git a/AppImageBuilder.yml b/AppImageBuilder.yml deleted file mode 100644 index 3993f97..0000000 --- a/AppImageBuilder.yml +++ /dev/null @@ -1,111 +0,0 @@ -version: 1 -script: - # Remove any previous build - - rm -rf AppDir | true - # Make usr and icons dirs - - mkdir -p AppDir/usr/src - # Copy the python application code into the AppDir - - cp robot_log_visualizer AppDir/usr/src -r - - mv AppDir/usr/src/robot_log_visualizer/__main__.py AppDir/usr/src/robot-log-visualizer.py - - # Install application logo - - mkdir -p AppDir/usr/share/icons/hicolor/1024x1024/apps/ - - cp robot_log_visualizer/ui/misc/icon.png AppDir/usr/share/icons/hicolor/1024x1024/apps/robot-log-visualizer-icon.png - - # Install application dependencies - - python3 -m pip install --ignore-installed --prefix=/usr --root=AppDir pyngrok pyqtconsole idyntree meshcat matplotlib h5py - - -AppDir: - path: ./AppDir - - app_info: - id: com.robot-log-visualizer.ami - name: robot-log-visualizer - version: 0.6.1 - icon: robot-log-visualizer-icon - # Set the python executable as entry point - exec: usr/bin/python3 - # Set the application main script path as argument. Use '$@' to forward CLI parameters - exec_args: "$APPDIR/usr/src/robot-log-visualizer.py" - - apt: - arch: amd64 - sources: - - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse' - key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' - - include: - - python3 - - python3-pkg-resources - - coinor-libipopt-dev - - python3-pyqt5 - - python3-pyqt5.qtwebengine - - python3-pyqt5.qtmultimedia - - python3-qtpy - - libassimp-dev - - libqt5multimedia5-plugins - - libeigen3-dev - - libxml2-dev - - coinor-libipopt-dev - - libassimp-dev - - libirrlicht-dev - - exclude: - - perl - - qtchooser - - files: - exclude: - - usr/share/man[0-9] - - usr/share/man - - usr/share/doc/*/README.* - - usr/share/doc/*/changelog.* - - usr/share/doc/*/NEWS.* - - usr/share/doc/*/TODO.* - - usr/include - - usr/lib/cmake - - usr/lib/pkgconfig - - runtime: - env: - PATH: '${APPDIR}/usr/bin:${PATH}' - # Set python home - # See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONHOME - PYTHONHOME: '${APPDIR}/usr' - # Path to the site-packages dir or other modules dirs - # See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH - PYTHONPATH: '${APPDIR}/usr/lib/python3.8/site-packages' - - # Disable webengine sandboxing - QTWEBENGINE_DISABLE_SANDBOX: 1 - - # this is required for the models - ROS_PACKAGE_PATH: '${APPDIR}/usr/share' - - test: - fedora: - image: appimagecrafters/tests-env:fedora-30 - command: ./AppRun - use_host_x: true - debian: - image: appimagecrafters/tests-env:debian-stable - command: ./AppRun - use_host_x: true - arch: - image: appimagecrafters/tests-env:archlinux-latest - command: ./AppRun - use_host_x: true - centos: - image: appimagecrafters/tests-env:centos-7 - command: ./AppRun - use_host_x: true - ubuntu: - image: appimagecrafters/tests-env:ubuntu-bionic - command: ./AppRun - use_host_x: true - -AppImage: - update-information: 'gh-releases-zsync|AppImageCrafters|com.robot-log-visualizer.ami|latest|python-appimage-*x86_64.AppImage.zsync' - sign-key: None - arch: x86_64 diff --git a/README.md b/README.md index 3bd7064..9646224 100644 --- a/README.md +++ b/README.md @@ -39,20 +39,6 @@ Inside the virtual environment, install the application from `pip`: pip install robot-log-visualizer ``` -### 📦 Use the `AppImage` -If you are in a Linux distribution you can use the [`AppImage`](https://appimage.org/). -Please run the following command on your terminal. Remember to change the `version` number in the following command -```console -version=0.6.1 -wget https://github.com/ami-iit/robot-log-visualizer/releases/download/v${version}/robot-log-visualizer-${version}-x86_64.AppImage -chmod a+x robot-log-visualizer-${version}-x86_64.AppImage -``` - -Run the application -```console -./robot-log-visualizer-${version}-x86_64.AppImage -``` - ### 👷 Install the latest version (not recommended) If you want to use the latest feature of the `robot-log-visualizer` you can install it with the following command