Skip to content

Commit 04f2a1d

Browse files
committed
wip: Add any_app_packager & any_app_publisher
1 parent 075c82d commit 04f2a1d

18 files changed

+186
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.dart_tool/
2+
.packages
3+
build/
4+
pubspec.lock # Except for application packages
5+
.flutter-plugins
6+
.flutter-plugins-dependencies
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.1.0
2+
3+
* Initial release.

packages/any_app_packager/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024-present LiJianying <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# any_app_packager
2+
3+
[![pub version][pub-image]][pub-url]
4+
5+
[pub-image]: https://img.shields.io/pub/v/any_app_packager.svg
6+
[pub-url]: https://pub.dev/packages/any_app_packager
7+
8+
---
9+
10+
Part of [fastforge](https://github.com/fastforgedev), See also https://fastforge.dev
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include: package:mostly_reasonable_lints/analysis_options.yaml
2+
3+
linter:
4+
rules:
5+
avoid_print: false
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
void main() {
2+
print('any_app_packager is still under development');
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library any_app_packager;
2+
3+
export 'src/any_app_packager.dart';
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import 'dart:io';
2+
3+
import 'package:flutter_app_packager/flutter_app_packager.dart';
4+
5+
class AnyAppPackager {
6+
final FlutterAppPackager _flutterAppPackager = FlutterAppPackager();
7+
8+
/// Packages the app for the given platform and target.
9+
Future<MakeResult> package(
10+
String platform,
11+
String target,
12+
Map<String, dynamic>? arguments,
13+
Directory outputDirectory, {
14+
required Directory buildOutputDirectory,
15+
required List<File> buildOutputFiles,
16+
}) {
17+
return _flutterAppPackager.package(
18+
platform,
19+
target,
20+
arguments,
21+
outputDirectory,
22+
buildOutputDirectory: buildOutputDirectory,
23+
buildOutputFiles: buildOutputFiles,
24+
);
25+
}
26+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: any_app_packager
2+
description: Package your any app into OS-specific bundles (.dmg, .exe, etc.) via Dart or the command line.
3+
version: 0.1.0
4+
homepage: https://fastforge.dev/any_app_packager
5+
repository: https://github.com/leanflutter/flutter_distributor/tree/main/packages/any_app_packager
6+
7+
environment:
8+
sdk: ">=2.16.0 <4.0.0"
9+
10+
dependencies:
11+
flutter_app_packager: ^0.4.5
12+
13+
dev_dependencies:
14+
dependency_validator: ^3.0.0
15+
mostly_reasonable_lints: ^0.1.2
16+
17+
executables:
18+
packageanyapp: main
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.dart_tool/
2+
.packages
3+
build/
4+
pubspec.lock # Except for application packages

0 commit comments

Comments
 (0)