Unverified Commit 95d02e7f authored by azubieta's avatar azubieta Committed by GitHub

Merge pull request #3 from AppImageCrafters/use-build-appimage-action

Update appimage.yml
parents fd72469b a3ccf633
Pipeline #2142 passed with stage
in 2 minutes and 28 seconds
......@@ -10,25 +10,24 @@ jobs:
build-appimage:
runs-on: ubuntu-latest
container:
image: appimagecrafters/appimage-builder
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: |
apt-get update
apt-get install -y qt5-default qtdeclarative5-dev cmake
sudo apt-get update
sudo apt-get install -y qt5-default qtdeclarative5-dev cmake
- name: configure
run: cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
- name: build
run: make -j`nproc`
- name: pack
run: |
make install DESTDIR=AppDir
export export UPDATE_INFO="gh-releases-zsync|AppImageCrafters|qt-hello-world|latest|*.AppImage.zsync"
appimage-builder --skip-test
run: make -j`nproc` install DESTDIR=AppDir
- name: Build AppImage
uses: AppImageCrafters/build-appimage-action@master
env:
UPDATE_INFO: gh-releases-zsync|AppImageCrafters|qt-hello-world|latest|*x86_64.AppImage.zsync
with:
recipe: AppImageBuilder.yml
- uses: actions/upload-artifact@v2
with:
name: AppImage
path: './*.AppImage*'
\ No newline at end of file
path: './*.AppImage*'
......@@ -2,9 +2,9 @@ version: 1
AppDir:
path: AppDir
app_info:
id: net.opencode.azubieta.hello-qt-world
name: HelloWorld
icon: application-x-executable
id: hello-world-qt
name: Hello World
icon: hello-world-qt
version: latest
exec: usr/bin/hello-qt-world
exec_args: $@
......
......@@ -26,4 +26,5 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt5 COMPONENTS Core Quick REQUIRED)
add_subdirectory(src)
\ No newline at end of file
add_subdirectory(src)
add_subdirectory(res)
\ No newline at end of file
install(FILES hello-world-qt.desktop DESTINATION share/applications/ COMPONENT desktop)
install(FILES hello-world-qt.png DESTINATION share/icons/hicolor/256x256/apps COMPONENT desktop)
[Desktop Entry]
Version=1.0
Type=Application
Name=Qt AppImage Template
Comment=Qt Quick Controls 2 Application
TryExec=qt-appimage-template
Exec=qt-appimage-template
Icon=hello-world-qt
MimeType=image/x-foo;
Categories=Utility;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment