diff --git a/.github/workflows/.yml b/.github/workflows/.yml deleted file mode 100644 index 534ad46..0000000 --- a/.github/workflows/.yml +++ /dev/null @@ -1,113 +0,0 @@ - -- uses: actions/setup-java@v3 - with: - distribution: 'zulu' - java-version: "12.x" - cache: 'gradle' // 1 - -- uses: subosito/flutter-action@v2 - with: - flutter-version: "3.10.2" - channel: 'stable' - cache: true // 2 - -#name: Flutter Workflow -# -#on: -# push: -# branches: -# - main -#jobs: -# build: -# if: -# name: Build -# runs-on: ubuntu-latest -# steps: -# - name: Checkout out source code -# uses: actions/checkout@v3 -# -# - name: Install Java -# uses: actions/setup-java@v3 -# with: -# java-version: '18' -# distribution: 'adopt' -# cache: 'gradle' -# -# - name: Setup Android SDK -# uses: android-actions/setup-android@v2 -# -# - name: Install Flutter -# uses: subosito/flutter-action@v2 -# with: -# flutter-version: '3.10.2' -# channel: 'stable' -# cache: true -# -# - name: Check Flutter Version -# run: flutter doctor --verbose & flutter --disable-telemetry -# -# -# - name: Install dependencies example app -# working-directory: example -# run: flutter clean && flutter pub get -# -# - name: Install dependencies -# run: flutter clean -# -# - run: flutter pub get || true -# -# - working-directory: example -# run: flutter create . -# -# -# -# # - name: Create android APK -## working-directory: example -## run: flutter build apk --profile -## -## - name: Move apk to Download folder -## run: mv example/build/app/outputs/flutter-apk/app-profile.apk download/app-profile.apk -# -# - name: Set up C++ compiler and Make -# working-directory: example -# run: | -# sudo apt-get install g++-9 -# sudo apt-get install make -# sudo apt-get install ninja-build -# -# - name: Create linux build -# working-directory: example -# run: flutter build linux --release -# -# # - name: Move linux install to download folder -## run: mv example/build/linux/release/bundle download/linux -# -# -# -## - name: Create web build -## working-directory: example -## run: flutter build web --release -## -## - name: Commit folder example/build/web to https://github.com/quocbao238/flutter_m3_core_webview -## run: | -## set -e -## git config --global user.email "baobondev@gmail.com" -## git config --global user.name "baobui" -## git clone https://github.com/quocbao238/flutter_m3_core_webview -## cd flutter_m3_core_webview -## git rm -rf * -## cp -r ../example/build/web/* . -## git add . -## git commit -m "Update web build" -## git push origin main -# -# -# -# -# -# -# -# -# -# -# diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index b75b385..c9f972d 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -7,7 +7,7 @@ on: branches: [ "main" ] jobs: - build: + Android Release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/macos-release.yml b/.github/workflows/macos-release.yml index 98e2674..1086f22 100644 --- a/.github/workflows/macos-release.yml +++ b/.github/workflows/macos-release.yml @@ -8,7 +8,7 @@ on: branches: [ "main" ] jobs: - build: + Macos Release: runs-on: macos-latest steps: - uses: actions/checkout@v3 @@ -34,8 +34,14 @@ jobs: working-directory: example run: flutter build macos --release + + - name: Install app-dmg & Create dmg file + working-directory: example + run: npm install -g appdmg && appdmg installers/dmg_creator/config.json installers/dmg_creator/flutter_m3.dmg + + - name: Upload a Build Artifact uses: actions/upload-artifact@v2 with: name: Macos - Release - path: example/build/outputs/macos/Release/example.dmg \ No newline at end of file + path: example/installers/dmg_creator/flutter_m3.dmg \ No newline at end of file diff --git a/.github/workflows/window_release.yml b/.github/workflows/window_release.yml new file mode 100644 index 0000000..5aca08a --- /dev/null +++ b/.github/workflows/window_release.yml @@ -0,0 +1,41 @@ +# Support build window +name: Window Release + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + Window Release: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: "12.x" + cache: 'gradle' + + - uses: subosito/flutter-action@v2 + with: + flutter-version: "3.10.2" + channel: 'stable' + cache: true + - name: Get dependencies + run: flutter --disable-telemetry && flutter pub get && flutter doctor || true + + - name: Get dependencies example app + working-directory: example + run: flutter pub get + + - name: Start release build + working-directory: example + run: flutter build windows --release + + - name: Upload a Build Artifact + uses: actions/upload-artifact@v2 + with: + name: Window - Release + path: example/build/outputs/windows/Release/example.exe \ No newline at end of file diff --git a/example/installers/dmg_creator/config.json b/example/installers/dmg_creator/config.json index 1ea5c6f..e3fe985 100644 --- a/example/installers/dmg_creator/config.json +++ b/example/installers/dmg_creator/config.json @@ -1,5 +1,5 @@ { - "title": "FlutterM3Core App", + "title": "Flutter M3 App", "icon": "../../assets/flutter_m3_core.icns", "contents": [ { "x": 448, "y": 344, "type": "link", "path": "/Applications" }, diff --git a/example/linux/flutter/ephemeral/.plugin_symlinks/dynamic_color b/example/linux/flutter/ephemeral/.plugin_symlinks/dynamic_color index 26468f1..a79d326 120000 --- a/example/linux/flutter/ephemeral/.plugin_symlinks/dynamic_color +++ b/example/linux/flutter/ephemeral/.plugin_symlinks/dynamic_color @@ -1 +1 @@ -/Users/baobui/.pub-cache/hosted/pub.dev/dynamic_color-1.6.5/ \ No newline at end of file +/Users/macbook/.pub-cache/hosted/pub.dev/dynamic_color-1.6.5/ \ No newline at end of file diff --git a/example/linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux b/example/linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux index 3055992..a5d3e30 120000 --- a/example/linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux +++ b/example/linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux @@ -1 +1 @@ -/Users/baobui/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.10/ \ No newline at end of file +/Users/macbook/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.10/ \ No newline at end of file diff --git a/example/linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux b/example/linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux index 3fa9f55..24b99fe 120000 --- a/example/linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux +++ b/example/linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux @@ -1 +1 @@ -/Users/baobui/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.2.0/ \ No newline at end of file +/Users/macbook/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.2.0/ \ No newline at end of file