Skip to content

Commit

Permalink
add more platform assets
Browse files Browse the repository at this point in the history
  • Loading branch information
zenoxs committed May 4, 2022
1 parent 525f353 commit 48f4a78
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 16 deletions.
53 changes: 38 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 8 additions & 0 deletions windows/packaging/exe/make_config.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 48f4a78

Please # to comment.