diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bebe067..a523056 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,12 +67,14 @@ jobs: - name: Install flutter secure storage requirements run: sudo apt-get install libsecret-1-dev libjsoncpp-dev libsecret-1-0 - name: Create deb - run: flutter pub run flutter_distributor:main package --platform linux --targets deb + run: flutter pub run flutter_distributor:main package --platform linux --targets deb,zip - name: Upload Linux artifact uses: actions/upload-artifact@v3 with: name: ac_companion-linux - path: "dist/**/*.deb" + path: | + "dist/**/*.deb" + "dist/**/*.zip" build-windows: needs: [ analyze-test ] runs-on: windows-latest @@ -88,14 +90,15 @@ jobs: - run: flutter pub run build_runner build - run: flutter config --enable-windows-desktop - name: Create msix - run: flutter pub run flutter_distributor:main package --platform windows --targets msix + run: flutter pub run flutter_distributor:main package --platform windows --targets msix,exe - name: Upload windows artifact uses: actions/upload-artifact@v3 with: name: ac_companion-windows - path: "dist/**/*.msix" + path: | + "dist/**/*.msix" + "dist/**/*.exe" release: - name: Release needs: [build-macos, build-windows, build-linux] runs-on: ubuntu-latest steps: @@ -115,15 +118,15 @@ jobs: tag_name: ${{ steps.versions.outputs.version }} release_name: Release ${{ steps.versions.outputs.version }} body: | - Release Notes + Release Notes draft: false prerelease: false - - name: Download dmg + - name: Download MacOS assets uses: actions/download-artifact@v3 with: name: ac_companion-macos - - name: Upload MacOS Asset - id: upload-release-asset-macos + - name: Upload MacOS dmg + id: upload-release-macos-dmg uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -132,12 +135,12 @@ jobs: asset_path: "./${{ steps.versions.outputs.version }}/appcenter_companion-${{ steps.versions.outputs.version }}-macos.dmg" asset_name: "appcenter_companion-${{ steps.versions.outputs.version }}-macos.dmg" asset_content_type: application/octet-stream - - name: Download deb + - name: Download Linux assets uses: actions/download-artifact@v3 with: name: ac_companion-linux - - name: Upload Linux Asset - id: upload-release-asset-linux + - name: Upload Linux deb + id: upload-asset-linux-deb uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -146,12 +149,22 @@ jobs: asset_path: "./${{ steps.versions.outputs.version }}/appcenter_companion-${{ steps.versions.outputs.version }}-linux_deb.deb" asset_name: "appcenter_companion-${{ steps.versions.outputs.version }}-linux.deb" asset_content_type: application/octet-stream - - name: Download exe + - name: Upload Linux zip + id: upload-release-linux-zip + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: "./${{ steps.versions.outputs.version }}/appcenter_companion-${{ steps.versions.outputs.version }}-linux_zip.zip" + asset_name: "appcenter_companion-${{ steps.versions.outputs.version }}-linux.zip" + asset_content_type: application/octet-stream + - name: Download Windows assets uses: actions/download-artifact@v3 with: name: ac_companion-windows - - name: Upload Windows Asset - id: upload-release-asset-windows + - name: Upload Windows msix + id: upload-release-windows-msix uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -160,3 +173,13 @@ jobs: asset_path: "./${{ steps.versions.outputs.version }}/appcenter_companion-${{ steps.versions.outputs.version }}-windows.msix" asset_name: "appcenter_companion-${{ steps.versions.outputs.version }}-windows.msix" asset_content_type: application/octet-stream + - name: Upload Windows exe + id: upload-release-windows-exe + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: "./${{ steps.versions.outputs.version }}/appcenter_companion-${{ steps.versions.outputs.version }}-windows.exe" + asset_name: "appcenter_companion-${{ steps.versions.outputs.version }}-windows.exe" + asset_content_type: application/octet-stream \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 2e69019..c17bdf4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.0.5+1 +version: 1.0.6+1 environment: sdk: ">=2.16.2 <3.0.0" diff --git a/windows/packaging/exe/make_config.yaml b/windows/packaging/exe/make_config.yaml new file mode 100644 index 0000000..5c0bf77 --- /dev/null +++ b/windows/packaging/exe/make_config.yaml @@ -0,0 +1,8 @@ +app_id: 22e47568-62d0-421f-a41d-72107b54ff4d +publisher: Amaury CIVIER +publisher_url: https://github.com/zenoxs/appcenter-companion +display_name: AC Companion +create_desktop_icon: true +install_dir_name: appcenter-companion +locales: + - en \ No newline at end of file