-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
1,345 additions
and
1,048 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
name: Flutter Build | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
env: | ||
FLUTTER_VERSION: '3.19.3' | ||
|
||
jobs: | ||
setup: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
platform: 'android' | ||
target-platform: 'android-arm64' | ||
- os: ubuntu-latest | ||
platform: 'linux' | ||
- os: windows-latest | ||
platform: 'windows' | ||
- os: macos-14 | ||
platform: 'ios' | ||
- os: macos-14 | ||
platform: 'macos' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
||
- name: Install Flutter SDK | ||
uses: hughware/flutter-action@v1.0.0 | ||
with: | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
cache: true | ||
cache-key: flutter-sdk-${{ runner.os }}-${{ env.FLUTTER_VERSION }} | ||
|
||
- run: flutter pub get | ||
|
||
- name: Build for Android | ||
if: matrix.platform == 'android' | ||
run: flutter build apk --release --target-platform ${{ matrix.target-platform }} | ||
|
||
|
||
- name: Build for Linux | ||
if: matrix.platform == 'linux' | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y ninja-build libgtk-3-dev | ||
flutter build linux --release | ||
- name: Build for Windows | ||
if: matrix.platform == 'windows' | ||
run: flutter build windows --release | ||
|
||
- name: Build for iOS | ||
if: matrix.platform == 'ios' | ||
run: flutter build ios --release --no-codesign | ||
|
||
- name: Build for macOS | ||
if: matrix.platform == 'macos' | ||
run: flutter build macos --release | ||
|
||
- name: Upload Artifact for Android | ||
if: matrix.platform == 'android' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: android-app | ||
path: build/app/outputs/flutter-apk/app-release.apk | ||
|
||
- name: Upload Artifact for Linux | ||
if: matrix.platform == 'linux' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: linux-app | ||
path: build/linux/*/release/bundle | ||
|
||
- name: Upload Artifact for Windows | ||
if: matrix.platform == 'windows' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: windows-app | ||
path: build/windows/x64/runner/Release/* | ||
|
||
- name: Upload Artifact for iOS | ||
if: matrix.platform == 'ios' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ios-app | ||
path: build/ios/iphoneos/*.app | ||
|
||
- name: Upload Artifact for macOS | ||
if: matrix.platform == 'macos' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: macos-app | ||
path: build/macos/Build/Products/Release/*.app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class GlobalStore{ | ||
// 数据存储 | ||
// 所有笔记配置位置列表 | ||
static const String DATASTORE_KEY_NOTE_CFG_POS_LIST = "molihuan_note_DATASTORE_KEY_NOTE_CFG_POS_LIST"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.