Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
小滋润 committed Oct 27, 2024
1 parent 4ae69d8 commit e580f15
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/develop-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,19 @@ jobs:

- name: Run flutter doctor
run: flutter doctor


- name: Run flutter clean
run: flutter clean

- name: Build APK (Unsigned)
run: |
flutter build apk --release \
--dart-define=config.server.network.host=${{ vars.SERVER_HOST }} \
--dart-define=config.server.network.port=${{ vars.SERVER_PORT }} \
--dart-define=config.server.signKey=${{ secrets.SERVER_SIGN_KEY }}
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: LeapLedger.apk
path: build/app/outputs/flutter-apk/app-release-unsigned.apk
path: build/app/outputs/flutter-apk/app-release.apk
2 changes: 1 addition & 1 deletion lib/config/server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ class Server {
late final String signKey;
Server();
init() {
network = Network();
signKey = const String.fromEnvironment("config.server.signKey", defaultValue: '');
network = Network();
}
}

Expand Down

0 comments on commit e580f15

Please sign in to comment.