mirror of
https://github.com/flutter/samples.git
synced 2025-11-12 07:48:55 +00:00
jsonexample rebuild script (#1366)
This commit is contained in:
36
jsonexample/codelab_rebuild.yaml
Normal file
36
jsonexample/codelab_rebuild.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
# Run with tooling from https://github.com/flutter/codelabs/tree/main/tooling/codelab_rebuild
|
||||
name: JSON Example rebuild script
|
||||
steps:
|
||||
- name: Remove runners
|
||||
rmdirs:
|
||||
- android
|
||||
- ios
|
||||
- macos
|
||||
- linux
|
||||
- windows
|
||||
- web
|
||||
- name: Recreate runners
|
||||
flutter: create --org dev.flutter .
|
||||
- name: Remove widget_test.dart
|
||||
rm: test/widget_test.dart
|
||||
- name: Update
|
||||
path: web/manifest.json
|
||||
patch-u: |
|
||||
--- b/jsonexample/web/manifest.json
|
||||
+++ a/jsonexample/web/manifest.json
|
||||
@@ -5,7 +5,7 @@
|
||||
"display": "standalone",
|
||||
"background_color": "#0175C2",
|
||||
"theme_color": "#0175C2",
|
||||
- "description": "A new Flutter project.",
|
||||
+ "description": "A demonstration of JSON parsing",
|
||||
"orientation": "portrait-primary",
|
||||
"prefer_related_applications": false,
|
||||
"icons": [
|
||||
|
||||
- name: Flutter upgrade
|
||||
flutter: pub upgrade --major-versions
|
||||
- name: Flutter build macOS
|
||||
flutter: build macos
|
||||
- name: Flutter build macOS
|
||||
flutter: build ios --simulator
|
||||
Reference in New Issue
Block a user