Skip to content

Commit bfb88a2

Browse files
committed
git push
Merge branch 'master' of github.com:hmziqrs/flutter-ui-designs
2 parents c0154c2 + ff2fbab commit bfb88a2

File tree

3 files changed

+84
-98
lines changed

3 files changed

+84
-98
lines changed

.github/workflows/main.yml

Lines changed: 49 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
on:
22
push:
33
tags:
4-
- '*'
4+
- "*"
55

66
name: Release Builds
77
jobs:
8-
# linux:
9-
# name: Linux
10-
# runs-on: ubuntu-latest
11-
# steps:
12-
# - name: Set up Flutter
13-
# uses: subosito/flutter-action@v2
14-
# with:
15-
# flutter-version: '3.22.2'
16-
# channel: 'stable'
8+
linux:
9+
name: Linux
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Set up Flutter
13+
uses: subosito/flutter-action@v2
14+
with:
15+
flutter-version: "3.24.4"
16+
channel: "stable"
1717

18-
# - uses: actions/checkout@v4
19-
# with:
20-
# path: 'app'
18+
- uses: actions/checkout@v4
19+
with:
20+
path: "app"
2121

22-
# - name: Install required build tools for linux
23-
# run: |
24-
# sudo apt-get update -y
25-
# sudo apt-get upgrade -y
26-
# sudo apt-get install -y curl git unzip xz-utils zip libglu1-mesa
27-
# sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
22+
- name: Install required build tools for linux
23+
run: |
24+
sudo apt-get update -y
25+
sudo apt-get upgrade -y
26+
sudo apt-get install -y curl git unzip xz-utils zip libglu1-mesa
27+
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
2828
29-
# - run: |
30-
# cd app
31-
# flutter config --enable-linux-desktop
32-
# flutter pub get
33-
# flutter build linux --release
34-
# cd build/linux/release
35-
# zip -r linux-release.zip bundle
29+
- run: |
30+
cd app
31+
flutter config --enable-linux-desktop
32+
flutter pub get
33+
flutter build linux --release
34+
cd build/linux/x64/release
35+
zip -r linux-release.zip bundle
3636
37-
# - name: Create linux Release
38-
# uses: ncipollo/release-action@v1
39-
# with:
40-
# artifacts: 'app/build/linux/release/linux-release.zip'
41-
# token: ${{ secrets.TOKEN }}
42-
# allowUpdates: true
37+
- name: Create linux Release
38+
uses: ncipollo/release-action@v1
39+
with:
40+
artifacts: "app/build/linux/x64/release/linux-x64.zip,app/build/linux/arm64/release/linux-arm64.zip"
41+
token: ${{ secrets.TOKEN }}
42+
allowUpdates: true
4343

4444
web:
4545
name: Web
@@ -48,21 +48,20 @@ jobs:
4848
- name: Set up Flutter
4949
uses: subosito/flutter-action@v2
5050
with:
51-
flutter-version: '3.22.2'
52-
channel: 'stable'
53-
51+
flutter-version: "3.24.4"
52+
channel: "stable"
5453

5554
- uses: actions/checkout@v4
5655
with:
57-
path: 'app'
56+
path: "app"
5857

5958
- name: Build web release
6059
run: |
6160
cd app
6261
flutter config --enable-web
6362
flutter pub get
64-
flutter build web -t lib/main.web.dart --release --no-tree-shake-icons
65-
63+
flutter build web -t lib/main.web.dart --release --no-tree-shake-icons --wasm
64+
6665
- name: Copy privacy policy
6766
run: |
6867
cd app
@@ -71,9 +70,9 @@ jobs:
7170
- name: Deploy to Firebase
7271
uses: w9jds/firebase-action@master
7372
with:
74-
args: deploy --only hosting
73+
args: deploy --only hosting
7574
env:
76-
PROJECT_PATH: 'app'
75+
PROJECT_PATH: "app"
7776
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
7877

7978
android:
@@ -83,17 +82,17 @@ jobs:
8382
- name: Set up Flutter
8483
uses: subosito/flutter-action@v2
8584
with:
86-
flutter-version: '3.22.2'
87-
channel: 'stable'
85+
flutter-version: "3.22.2"
86+
channel: "stable"
8887

8988
- uses: actions/setup-java@v4
9089
with:
91-
java-version: '17'
92-
distribution: 'oracle'
90+
java-version: "17"
91+
distribution: "oracle"
9392

9493
- uses: actions/checkout@v4
9594
with:
96-
path: 'app'
95+
path: "app"
9796
- run: |
9897
cd app
9998
flutter pub get
@@ -102,7 +101,7 @@ jobs:
102101
- name: Create Android Release
103102
uses: ncipollo/release-action@v1
104103
with:
105-
artifacts: 'app/build/app/outputs/apk/release/app-release.apk'
104+
artifacts: "app/build/app/outputs/apk/release/app-release.apk"
106105
token: ${{ secrets.TOKEN }}
107106
allowUpdates: true
108107

@@ -113,12 +112,12 @@ jobs:
113112
- name: Set up Flutter
114113
uses: subosito/flutter-action@v2
115114
with:
116-
flutter-version: '3.22.2'
117-
channel: 'stable'
115+
flutter-version: "3.22.2"
116+
channel: "stable"
118117

119118
- uses: actions/checkout@v4
120119
with:
121-
path: 'app'
120+
path: "app"
122121

123122
- run: |
124123
cd app
@@ -131,7 +130,7 @@ jobs:
131130
132131
- uses: ncipollo/release-action@v1
133132
with:
134-
artifacts: 'app/build/macOS/Build/Products/Release/macos-release.zip'
133+
artifacts: "app/build/macOS/Build/Products/Release/macos-release.zip"
135134
token: ${{ secrets.TOKEN }}
136135
allowUpdates: true
137136

commands.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# Commands
22

3-
## Android
3+
## Android
44

55
### App bundle (windows)
66

77
```bash
88
flutter build appbundle -t .\lib\main.firebase.dart --release
99
cp build\app\outputs\bundle\release\app-release.aab ~\Desktop\fuid\
10-
```
10+
```
11+
12+
## Web
13+
14+
### WASM
15+
16+
```bash
17+
flutter build web --wasm --no-tree-shake-icons
18+
```

web/index.html

Lines changed: 25 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,38 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
3-
<head>
4-
<!--
3+
<head>
4+
<!--
55
If you are serving your web app in a path other than the root, change the
66
href value below to reflect the base path you are serving from.
7-
7+
88
The path provided below has to start and end with a slash "/" in order for
99
it to work correctly.
10-
10+
1111
For more details:
1212
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
13-
13+
1414
This is a placeholder for base href that will be replaced by the value of
1515
the `--base-href` argument provided to `flutter build`.
1616
-->
17-
<base href="$FLUTTER_BASE_HREF">
17+
<base href="$FLUTTER_BASE_HREF" />
18+
19+
<meta charset="UTF-8" />
20+
<meta content="IE=Edge" http-equiv="X-UA-Compatible" />
21+
22+
<!-- iOS meta tags & icons -->
23+
<meta name="apple-mobile-web-app-capable" content="yes" />
24+
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
25+
<meta name="apple-mobile-web-app-title" content="flutter_uis" />
26+
<link rel="apple-touch-icon" href="icons/Icon-192.png" />
1827

19-
<meta charset="UTF-8">
20-
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
21-
<meta name="description" content="A new Flutter project.">
22-
23-
<!-- iOS meta tags & icons -->
24-
<meta name="apple-mobile-web-app-capable" content="yes">
25-
<meta name="apple-mobile-web-app-status-bar-style" content="black">
26-
<meta name="apple-mobile-web-app-title" content="flutter_uis">
27-
<link rel="apple-touch-icon" href="icons/Icon-192.png">
28-
29-
<!-- Favicon -->
30-
<link rel="icon" type="image/png" href="favicon.png" />
31-
32-
<title>flutter_uis</title>
33-
<link rel="manifest" href="manifest.json">
34-
35-
<script>
36-
// The value below is injected by flutter build, do not touch.
37-
var serviceWorkerVersion = null;
38-
</script>
39-
<!-- This script adds the flutter initialization JS code -->
40-
<script src="flutter.js" defer></script>
41-
</head>
42-
<body>
43-
<script>
28+
<!-- Favicon -->
29+
<link rel="icon" type="image/png" href="favicon.png" />
4430

45-
window.addEventListener('load', function (ev) {
46-
// Download main.dart.js
47-
_flutter.loader.loadEntrypoint({
48-
serviceWorker: {
49-
serviceWorkerVersion: serviceWorkerVersion,
50-
}
51-
}).then(function (engineInitializer) {
52-
return engineInitializer.initializeEngine();
53-
}).then(function (appRunner) {
54-
return appRunner.runApp();
55-
});
56-
});
57-
</script>
58-
</body>
31+
<title>flutter_uis</title>
32+
<meta name="description" content="A new Flutter project." />
33+
<link rel="manifest" href="manifest.json" />
34+
</head>
35+
<body>
36+
<script src="flutter_bootstrap.js" async></script>
37+
</body>
5938
</html>

0 commit comments

Comments
 (0)