From 7a366f86772a0259c8d6adaf6518331a7b748e7e Mon Sep 17 00:00:00 2001 From: 4sterisk <4sterisk@ymail.ne.jp> Date: Tue, 19 Nov 2024 23:35:35 +0900 Subject: [PATCH] test --- .github/workflows/linux_deploy.yml | 39 +++++----------------------- linux/packaging/deb/make_config.yaml | 15 +++++++++++ 2 files changed, 22 insertions(+), 32 deletions(-) create mode 100644 linux/packaging/deb/make_config.yaml diff --git a/.github/workflows/linux_deploy.yml b/.github/workflows/linux_deploy.yml index 589d276e0..2e6fdb483 100644 --- a/.github/workflows/linux_deploy.yml +++ b/.github/workflows/linux_deploy.yml @@ -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 \ No newline at end of file + name: release-x64.deb + path: ./*deb \ No newline at end of file diff --git a/linux/packaging/deb/make_config.yaml b/linux/packaging/deb/make_config.yaml new file mode 100644 index 000000000..716b0b9f4 --- /dev/null +++ b/linux/packaging/deb/make_config.yaml @@ -0,0 +1,15 @@ +display_name: Miria +package_name: Miria + +maintainer: + name: sorahiro + email: sorairo@shiosyakeyakini.info + +priority: optional +section: x11 + +dependencies: + - libsecret-1-0 + - libmpv1 | libmpv2 + +icon: assets/logo.png \ No newline at end of file