Skip to content

Commit 61a10cf

Browse files
committed
feat: done actions
1 parent 104d882 commit 61a10cf

File tree

7 files changed

+206
-144
lines changed

7 files changed

+206
-144
lines changed

.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CHANNEL=prod
1+
CHANNEL=site

.github/workflows/publish.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
include:
1313
# - target: aarch64-apple-darwin
1414
# platform: macos-latest
15-
# - target: x86_64-apple-darwin
16-
# platform: macos-latest
15+
- target: x86_64-apple-darwin
16+
platform: macos-latest
1717
# - target: x86_64-unknown-linux-gnu
1818
# platform: ubuntu-20.04
19-
- target: x86_64-pc-windows-msvc
20-
platform: windows-latest
19+
# - target: x86_64-pc-windows-msvc
20+
# platform: windows-latest
2121

2222
runs-on: ${{ matrix.platform }}
2323
steps:
@@ -71,6 +71,7 @@ jobs:
7171
if [ ! -d "releases" ]; then
7272
mkdir releases
7373
fi
74+
flutter config --enable-windows-desktop
7475
flutter build windows --release
7576
cp build/windows/runner/Release/GeekChat.exe releases/GeekChat.exe
7677

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,26 @@ samples, guidance on mobile development, and a full API reference.
2020
flutter pub run build_runner build
2121
```
2222

23+
### build
24+
25+
build with [Flutter Distributor](https://distributor.leanflutter.org/docs/makers/dmg)
26+
27+
```
28+
dart pub global activate flutter_distributor
29+
30+
export PATH="$PATH":"$HOME/.pub-cache/bin"
31+
```
32+
33+
```
34+
yarn global add appdmg
35+
# or
36+
npm install -g appdmg
37+
```
38+
39+
```
40+
flutter_distributor release --name release
41+
```
42+
2343
### Docs
2444
- https://isar.dev/zh/recipes/string_ids.html
2545
- https://codewithandrea.com/articles/flutter-responsive-layouts-split-view-drawer-navigation/

distribute_options.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# variables:
2+
# PGYER_API_KEY: "your api key"
3+
output: dist/
4+
releases:
5+
- name: release
6+
jobs:
7+
# Build and publish your apk pkg to pgyer
8+
# - name: release-dev-android
9+
# package:
10+
# platform: android
11+
# target: apk
12+
# build_args:
13+
# # target-platform: android-arm,android-arm64
14+
# dart-define:
15+
# APP_ENV: release
16+
- name: macos-release
17+
package:
18+
platform: macos
19+
target: dmg
20+
build_args:
21+
dart-define:
22+
APP_ENV: release
23+
24+
25+
# publish_to: pgyer
26+
# Build and publish your ipa pkg to pgyer
27+
# - name: release-dev-ios
28+
# package:
29+
# platform: ios
30+
# target: ipa
31+
# build_args:
32+
# export-options-plist: ios/dev_ExportOptions.plist
33+
# dart-define:
34+
# APP_ENV: dev
35+
# publish_to: pgyer

macos/packaging/dmg/make_config.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
title: GeekChat
2+
contents:
3+
- x: 448
4+
y: 344
5+
type: link
6+
path: "/Applications"
7+
- x: 192
8+
y: 344
9+
type: file
10+
path: Geek Chat.app

0 commit comments

Comments
 (0)