mirror of
https://github.com/flutter/samples.git
synced 2026-05-06 06:56:34 +00:00
form_app update script (#1360)
This commit is contained in:
35
form_app/codelab_rebuild.yaml
Normal file
35
form_app/codelab_rebuild.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
# Run with tooling from https://github.com/flutter/codelabs/tree/main/tooling/codelab_rebuild
|
||||
name: Form App rebuild script
|
||||
steps:
|
||||
- name: Remove fluent_ui runners
|
||||
rmdirs:
|
||||
- android
|
||||
- ios
|
||||
- macos
|
||||
- linux
|
||||
- windows
|
||||
- web
|
||||
- name: Flutter recreate
|
||||
flutter: create --platforms android,ios,windows,linux,macos,web --org dev.flutter.formApp .
|
||||
- name: Drop widget_test.dart
|
||||
rm: test/widget_test.dart
|
||||
- name: Flutter upgrade
|
||||
flutter: pub upgrade --major-versions
|
||||
- name: Patch web/manifest.json
|
||||
path: web/manifest.json
|
||||
patch-u: |
|
||||
--- b/form_app/web/manifest.json
|
||||
+++ a/form_app/web/manifest.json
|
||||
@@ -5,7 +5,7 @@
|
||||
"display": "standalone",
|
||||
"background_color": "#0175C2",
|
||||
"theme_color": "#0175C2",
|
||||
- "description": "A new Flutter project.",
|
||||
+ "description": "A sample demonstrating different types of forms and best practices",
|
||||
"orientation": "portrait-primary",
|
||||
"prefer_related_applications": false,
|
||||
"icons": [
|
||||
- name: Flutter build macOS
|
||||
flutter: build macos
|
||||
- name: Flutter build ios
|
||||
flutter: build ios --simulator
|
||||
Reference in New Issue
Block a user