From ff0c89ff87e7b8216f05559160c89e1a8c85b1e0 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Wed, 2 Oct 2024 16:35:08 +0200 Subject: [PATCH] added make_config.yaml for macos and windows --- .github/workflows/main.yml | 20 ++++++++++---------- macos/packaging/dmg/make_config.yaml | 10 ++++++++++ windows/packaging/msix/make_config.yaml | 7 +++++++ 3 files changed, 27 insertions(+), 10 deletions(-) create mode 100644 macos/packaging/dmg/make_config.yaml create mode 100644 windows/packaging/msix/make_config.yaml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3e65124..09ad817 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -95,15 +95,15 @@ jobs: build/dist/*/*.zip - name: Extract version from pubspec.yaml - id: extract_version - run: | - version=$(grep '^version: ' pubspec.yaml | cut -d ' ' -f 2 | tr -d '\r') - echo "VERSION=$version" >> $GITHUB_ENV + id: yq + uses: mikefarah/yq@master + with: + cmd: yq -r '.version' 'pubspec.yaml' - name: Upload Release uses: softprops/action-gh-release@v1 with: - name: "${{ env.VERSION }}" + name: "${{ steps.yq.outputs.result }}" token: ${{ secrets.TOKEN }} files: | build/app/outputs/flutter-apk/app-x86_64-release.apk @@ -148,15 +148,15 @@ jobs: build/dist/*/*.zip - name: Extract version from pubspec.yaml - id: extract_version - run: | - version=$(grep '^version: ' pubspec.yaml | cut -d ' ' -f 2 | tr -d '\r') - echo "VERSION=$version" >> $GITHUB_ENV + id: yq + uses: mikefarah/yq@master + with: + cmd: yq -r '.version' 'pubspec.yaml' - name: Upload Release uses: softprops/action-gh-release@v1 with: - name: "${{ env.VERSION }}" + name: "${{ steps.yq.outputs.result }}" token: ${{ secrets.TOKEN }} files: | build/dist/*/*.msix diff --git a/macos/packaging/dmg/make_config.yaml b/macos/packaging/dmg/make_config.yaml new file mode 100644 index 0000000..fb57586 --- /dev/null +++ b/macos/packaging/dmg/make_config.yaml @@ -0,0 +1,10 @@ +title: Flutter Browser +contents: + - x: 448 + y: 344 + type: link + path: "/Applications" + - x: 192 + y: 344 + type: file + path: flutter_browser_app.app \ No newline at end of file diff --git a/windows/packaging/msix/make_config.yaml b/windows/packaging/msix/make_config.yaml new file mode 100644 index 0000000..74fbf68 --- /dev/null +++ b/windows/packaging/msix/make_config.yaml @@ -0,0 +1,7 @@ +display_name: Flutter Browser +publisher_display_name: pichillilorenzo +identity_name: com.pichillilorenzo.flutter_browser +logo_path: assets/icon/icon.png +capabilities: internetClient, location, microphone, webcam +languages: en-us +install_certificate: "false" \ No newline at end of file