mirror of
https://github.com/audacity/conan-appimage.git
synced 2026-04-30 19:29:45 -05:00
Adds a set of scripts to build Conan AppImage
This commit is contained in:
30
.github/workflows/build.yml
vendored
Normal file
30
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Build AppImage
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 3 * * *"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: "3.10"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
- name: Build AppImage
|
||||
id: build-appimage
|
||||
./build.sh
|
||||
- name: Upload AppImage
|
||||
uses: marvinpinto/action-automatic-releases@latest
|
||||
with:
|
||||
automatic_release_tag: v${{ steps.build_appimage.outputs.conan_version }}
|
||||
title: "Conan v${{ steps.build_appimage.outputs.conan_version }}"
|
||||
files: conan-v${{ steps.build_appimage.outputs.conan_version }}-x86_64.AppImage
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
21
LICENSE.md
Normal file
21
LICENSE.md
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 Audacity Team
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
17
appimage/conan-appimage.appdata.xml
Normal file
17
appimage/conan-appimage.appdata.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>conan-appimage</id>
|
||||
<metadata_license>MIT</metadata_license>
|
||||
<project_license>MIT</project_license>
|
||||
<name>conan-appimage</name>
|
||||
<summary>AppImage version of Conan C++ package manager</summary>
|
||||
<description>
|
||||
<p> AppImage version of Conan C++ package manager
|
||||
</p>
|
||||
</description>
|
||||
<launchable type="desktop-id">conan-appimage.desktop</launchable>
|
||||
<url type="homepage">https://github.com/audacity/conan-appimage</url>
|
||||
<provides>
|
||||
<binary>python{{ python-version }}</binary>
|
||||
</provides>
|
||||
</component>
|
||||
8
appimage/conan-appimage.desktop
Normal file
8
appimage/conan-appimage.desktop
Normal file
@@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=conan-appimage
|
||||
Exec=conan-appimage
|
||||
Comment=AppImage version of Conan C++ package manager
|
||||
Icon=conan-appimage
|
||||
Categories=Development;
|
||||
Terminal=true
|
||||
BIN
appimage/conan-appimage.png
Normal file
BIN
appimage/conan-appimage.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.0 KiB |
1
appimage/entrypoint.sh
Executable file
1
appimage/entrypoint.sh
Executable file
@@ -0,0 +1 @@
|
||||
{{ python-executable }} -I ${APPDIR}/opt/python{{ python-version }}/bin/conan "$@"
|
||||
1
appimage/requirements.txt
Normal file
1
appimage/requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
conan
|
||||
15
build.sh
Executable file
15
build.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
python-appimage build app -p 3.10 -l manylinux2014_x86_64 ./appimage
|
||||
|
||||
# Run twice - conan reports lots of info on the first run
|
||||
./conan-appimage-x86_64.AppImage --version
|
||||
version_string=$(./conan-appimage-x86_64.AppImage --version)
|
||||
version_string=${version_string#Conan version }
|
||||
|
||||
echo "Conan version: ${version_string}"
|
||||
|
||||
mv conan-appimage-x86_64.AppImage conan-${version_string}-x86_64.AppImage
|
||||
echo "conan_version=${version_string}" >> $GITHUB_OUTPUT
|
||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
python-appimage
|
||||
Reference in New Issue
Block a user