Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
4ster1sk committed Nov 19, 2024
1 parent e3c0950 commit 7a366f8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 32 deletions.
39 changes: 7 additions & 32 deletions .github/workflows/linux_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,36 +92,11 @@ jobs:
sudo pip3 install meson
- run: flutter pub get
- run: flutter test
- run: flutter build linux
- name: Get Build Version
run: |
echo "VERSION=$(yq -r '.version' pubspec.yaml)" >> $GITHUB_ENV
- name: Prepare to build DEB
run: |
echo "DESC=$(awk -F '=' '/^Comment=/{print $2}' ./snap/gui/miria.desktop)" >> $GITHUB_ENV
sed -i -E 's|^Version=.*|Version=${{ env.VERSION }}|g' ./snap/gui/miria.desktop
sed -i -E 's|^Icon=.*|Icon=/usr/share/pixmaps/miria.png|g' ./snap/gui/miria.desktop
sed -i -E 's|^Exec=.*|Exec=/opt/miria/miria|g' ./snap/gui/miria.desktop
mkdir -p .debpkg/opt/miria .debpkg/usr/share/applications .debpkg/usr/share/pixmaps
cp -rp ./build/linux/x64/release/bundle/* .debpkg/opt/miria/
cp ./snap/gui/miria.desktop .debpkg/usr/share/applications/
cp ./assets/images/icon.png .debpkg/usr/share/pixmaps/miria.png
- name: Build DEB
uses: jiro4989/build-deb-action@v3
- run: flutter pub global activate flutter_distributor
#- run: flutter test
- run: flutter_distributor package --platform=linux --targets=deb --skip-clean
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
desc: '${{ env.DESC }}'
package: ${{ env.APP_NAME }}
maintainer: ${{ env.MAINTAINER }}
version: ${{ env.VERSION }}
arch: "amd64"
package_root: ".debpkg"
depends: "libgtk-3-0, libstdc++6, libx11-6, libmpv1 | libmpv2, libsecret-1-0"

- name: Upload DEB
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload v$VERSION ./miria_${{ env.VERSION }}_amd64.deb
name: release-x64.deb
path: ./*deb
15 changes: 15 additions & 0 deletions linux/packaging/deb/make_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
display_name: Miria
package_name: Miria

maintainer:
name: sorahiro
email: [email protected]

priority: optional
section: x11

dependencies:
- libsecret-1-0
- libmpv1 | libmpv2

icon: assets/logo.png

0 comments on commit 7a366f8

Please sign in to comment.