Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gumbarros committed Nov 14, 2022
1 parent 7958f4e commit 07662f2
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 111 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/appimage.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/automatic-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Automatic Release
on:
workflow_run:
workflows: ["Build AppImage", "Build Flatpak"]
workflows: ["Build & deploy for Linux"]
types: [completed]

jobs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Flatpak
name: Build & deploy for Linux

on:
push:
Expand Down Expand Up @@ -61,10 +61,42 @@ jobs:
uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v4
with:
bundle: DevWidgets.flatpak
manifest-path: br.com.barros.DevWidgets.json
manifest-path: br.com.barros.DevWidgets.yml

- name: Upload .flatpak artifact to workflow
uses: actions/upload-artifact@v2
with:
name: Flatpak artifact
path: DevWidgets.flatpak
path: DevWidgets.flatpak

build-appimage:
name: Build AppImage
runs-on: ubuntu-latest
needs: build-flutter-app
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Download app archive
uses: actions/download-artifact@v3
with:
name: DevWidgets-Archive

- name: Extract archive
run: |
tar -xf DevWidgets-Linux-Portable.tar.gz -C portable/
- name: Build AppImage
run: |
cp -r portable DevWidgets.AppDir
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x ./appimagetool-x86_64.AppImage
cp -r linux/appimage_assets/* DevWidgets.AppDir/
chmod +x DevWidgets.AppDir/AppRun
./appimagetool-x86_64.AppImage DevWidgets.AppDir/
- name: Upload .AppImage artifact to workflow
uses: actions/upload-artifact@v2
with:
name: AppImage artifact
path: DevWidgets-x86_64.AppImage
1 change: 1 addition & 0 deletions br.com.barros.DevWidgets.desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[Desktop Entry]
Type=Application
Name=DevWidgets
Summary=Utilities for developers.
Icon=br.com.barros.DevWidgets
Exec=devwidgets %U
Categories=Development
Expand Down
54 changes: 0 additions & 54 deletions br.com.barros.DevWidgets.json

This file was deleted.

37 changes: 37 additions & 0 deletions br.com.barros.DevWidgets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
app-id: br.com.barros.DevWidgets
runtime: org.freedesktop.Platform
runtime-version: "22.08"
sdk: org.freedesktop.Sdk
command: devwidgets
separate-locales: false
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --device=dri
- --socket=pulseaudio
- --share=network
modules:
- name: devwidgets
buildsystem: simple
only-arches:
- x86_64
build-commands:
- mkdir -p DevWidgets
- tar -xf DevWidgets-Linux-Portable.tar.gz -C DevWidgets
- cp -r DevWidgets /app/
- chmod +x /app/DevWidgets/devwidgets
- mkdir -p /app/bin
- ln -s /app/DevWidgets/devwidgets /app/bin/devwidgets
- install -Dm644 br.com.barros.DevWidgets.metainfo.xml -t /app/share/metainfo/
- install -Dm644 icon.svg /app/share/icons/hicolor/scalable/apps/br.com.barros.DevWidgets.svg
- install -Dm644 br.com.barros.DevWidgets.desktop -t /app/share/applications/
sources:
- type: file
path: br.com.barros.DevWidgets.metainfo.xml
- type: file
path: br.com.barros.DevWidgets.desktop
- type: file
path: icon.svg
- type: file
path: DevWidgets-Linux-Portable.tar.gz

0 comments on commit 07662f2

Please sign in to comment.