diff --git a/.github/workflows/linux_deploy.yml b/.github/workflows/linux_deploy.yml index 589d276e0..d7a60c718 100644 --- a/.github/workflows/linux_deploy.yml +++ b/.github/workflows/linux_deploy.yml @@ -84,44 +84,22 @@ jobs: with: flutter-version: ${{ env.FLUTTER_FVM_VERSION }} cache: true + - name: Get Build Version + run: | + echo "VERSION=$(yq -r '.version' pubspec.yaml)" >> $GITHUB_ENV - name: Patch for linux build run: | sudo apt-get update -y - sudo apt-get install -y ninja-build libgtk-3-dev libsecret-1-dev libstdc++-12-dev nasm libmpv-dev + sudo apt-get install -y ninja-build libgtk-3-dev libsecret-1-dev libstdc++-12-dev mpv libmpv1-dev 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: ./dist/${{ env.VERSION }}/*deb \ No newline at end of file diff --git a/distribute_options.yam b/distribute_options.yam new file mode 100644 index 000000000..b2c98d8e6 --- /dev/null +++ b/distribute_options.yam @@ -0,0 +1,10 @@ +output: dist/ +releases: + - name: dev + jobs: + - name: release-dev-linux-deb + package: + platform: linux + target: deb + build_args: + enable-experiment: records \ 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..e59b7ff43 --- /dev/null +++ b/linux/packaging/deb/make_config.yaml @@ -0,0 +1,29 @@ +display_name: Miria +package_name: Miria + +maintainer: + name: sorahiro + email: sorairo@shiosyakeyakini.info + +priority: optional +section: x11 + +installed_size: 30960 + +dependencies: + - mpv + - libsecret-1-0 + - libmpv1 | libmpv2 + +essential: false +icon: assets/images/icon.png + +keywords: + - Misskey + +categories: + - Internet + +generic_name: Miria is Misskey Client App for iOS, Android and many targets which made by Flutter. + +profile: release \ No newline at end of file