-
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.
Merge pull request #3 from guchengxi1994/master
release
- Loading branch information
Showing
27 changed files
with
11,699 additions
and
1,151 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,69 @@ | ||
name: Build Linux App | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: 3.19.5 | ||
|
||
- name: Cache pubspec | ||
id: cache-pubspec | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
${{ env.FLUTTER_HOME }}/.pub-cache | ||
**/.flutter-plugins | ||
**/.flutter-plugin-dependencies | ||
**/.dart_tool/package_config.json | ||
key: pubspec-${{ hashFiles('**/pubspec.lock') }} | ||
restore-keys: | | ||
pubspec- | ||
- name: Get dependencies | ||
run: flutter pub get | ||
|
||
- name: Bump build number | ||
run: | | ||
flutter pub global activate cider | ||
- name: Build Linux app | ||
run: flutter build linux --release | ||
|
||
- name: Set tag name | ||
run: echo "tag_name=v$(cider version)" >> $env:GITHUB_ENV | ||
|
||
- name: List files in build directory | ||
run: ls -la build/linux/release/bundle | ||
|
||
# - name: Upload build artifacts | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: linux-app | ||
# path: build/linux/release/bundle/ | ||
|
||
- name: Archive release | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: 'linux.zip' | ||
directory: build/linux/release/bundle/ | ||
|
||
- name: Publish release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
artifacts: build/linux/release/bundle/linux.zip | ||
generateReleaseNotes: true | ||
tag: ${{ env.tag_name }} | ||
token: ${{ secrets.RELEASE_TOKEN }} |
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,35 @@ | ||
// This file is automatically generated, so please do not edit it. | ||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. | ||
|
||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import | ||
|
||
import '../frb_generated.dart'; | ||
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; | ||
|
||
// The type `_PinWindowItem` is not used by any `pub` functions, thus it is ignored. | ||
|
||
Future<void> createEventLoop({dynamic hint}) => | ||
RustLib.instance.api.createEventLoop(hint: hint); | ||
|
||
Future<void> showTodos( | ||
{required List<RustSimpleNotifyLibPinWindowItem> data, dynamic hint}) => | ||
RustLib.instance.api.showTodos(data: data, hint: hint); | ||
|
||
// Rust type: RustOpaqueMoi<flutter_rust_bridge::for_generated::rust_async::RwLock<rust_simple_notify_lib :: PinWindowItem>> | ||
@sealed | ||
class RustSimpleNotifyLibPinWindowItem extends RustOpaque { | ||
RustSimpleNotifyLibPinWindowItem.dcoDecode(List<dynamic> wire) | ||
: super.dcoDecode(wire, _kStaticData); | ||
|
||
RustSimpleNotifyLibPinWindowItem.sseDecode(int ptr, int externalSizeOnNative) | ||
: super.sseDecode(ptr, externalSizeOnNative, _kStaticData); | ||
|
||
static final _kStaticData = RustArcStaticData( | ||
rustArcIncrementStrongCount: RustLib.instance.api | ||
.rust_arc_increment_strong_count_RustSimpleNotifyLibPinWindowItem, | ||
rustArcDecrementStrongCount: RustLib.instance.api | ||
.rust_arc_decrement_strong_count_RustSimpleNotifyLibPinWindowItem, | ||
rustArcDecrementStrongCountPtr: RustLib.instance.api | ||
.rust_arc_decrement_strong_count_RustSimpleNotifyLibPinWindowItemPtr, | ||
); | ||
} |
Oops, something went wrong.