flutter-tizen / engine

The Flutter engine
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
6 stars 19 forks source link

[ci] Add gen_snapshot artifacts #227

Closed WonyoungChoi closed 2 years ago

WonyoungChoi commented 2 years ago

Add jobs for building gen_snapshot on windows / macOS.

Added artifacts:

swift-kim commented 2 years ago
TIZEN_ENGINE_GITHUB_RUN_ID=1614508761 flutter-tizen precache --tizen --force
$ flutter-tizen run --release
Launching tizen/flutter/generated_main.dart on Tizen SM-R500 in release mode...
ProcessException: Found candidates, but lacked sufficient permissions to execute
"/Users/swift/Git/flutter-tizen/flutter/bin/cache/artifacts/engine/tizen-arm-release/darwin-x64/gen_snapshot".
  Command: /Users/swift/Git/flutter-tizen/flutter/bin/cache/artifacts/engine/tizen-arm-release/darwin-x64/gen_snapshot
Building a Tizen application in release mode...                    349ms
Exception: The build failed.

Worked on my watch (M1 Macbook as a host) after providing the executable permission to the gen_snapshot binary. Tested both release and profile modes.

WonyoungChoi commented 2 years ago

😢 I will test on my Intel MacBook. but is it possible to run x64 executable on M1? What happens if you run the /Users/swift/Git/flutter-tizen/flutter/bin/cache/artifacts/engine/tizen-arm-release/darwin-x64/gen_snapshot executable directly?

WonyoungChoi commented 2 years ago

Successful on Intel MacBook Result:

xamarin@Kanghos-MacBook-Air myapp1 % flutter-tizen run --release
Launching tizen/flutter/generated_main.dart on Tizen rpi4 in release mode...
The TPK was signed with a default certificate. You can create one using Certificate Manager.
https://github.com/flutter-tizen/flutter-tizen/blob/master/doc/install-tizen-sdk.md#create-a-tizen-certificate
Building a Tizen application in release mode...                    42.4s
✓ Built build/tizen/tpk/com.example.myapp1-1.0.0.tpk (6.6MB).
Installing build/tizen/tpk/com.example.myapp1-1.0.0.tpk...          4.7s

Flutter run key commands.
h List all available interactive commands.
c Clear the screen
q Quit (terminate the application on the device).