mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
add a changelog
This commit is contained in:
parent
987ce972d6
commit
fd21db9436
@ -3,3 +3,48 @@
|
|||||||
[](https://travis-ci.org/domokit/sky_tools)
|
[](https://travis-ci.org/domokit/sky_tools)
|
||||||
|
|
||||||
Tools for building Sky applications.
|
Tools for building Sky applications.
|
||||||
|
|
||||||
|
## Installing
|
||||||
|
|
||||||
|
To install, run:
|
||||||
|
|
||||||
|
pub global activate sky_tools
|
||||||
|
|
||||||
|
or, depend on this package in your pubspec:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
dependencies:
|
||||||
|
sky_tools: any
|
||||||
|
```
|
||||||
|
|
||||||
|
## Running sky_tools
|
||||||
|
|
||||||
|
Run `sky_tools` (or `pub global run sky_tools`) to see a list of available
|
||||||
|
commands.
|
||||||
|
|
||||||
|
- *init*: create a new project
|
||||||
|
|
||||||
|
Then run a sky_tools command, like `init`:
|
||||||
|
|
||||||
|
sky_tools init --out my_sky_project
|
||||||
|
|
||||||
|
## Running sky_tools:sky_server
|
||||||
|
|
||||||
|
To serve the current directory using `sky_server`:
|
||||||
|
|
||||||
|
pub run sky_tools:sky_server [-v] PORT
|
||||||
|
|
||||||
|
## Running sky_tools:build_sky_apk
|
||||||
|
|
||||||
|
```
|
||||||
|
usage: pub run sky_tools:build_sky_apk <options>
|
||||||
|
|
||||||
|
-h, --help
|
||||||
|
--android-sdk
|
||||||
|
--skyx
|
||||||
|
```
|
||||||
|
|
||||||
|
## Filing Issues
|
||||||
|
|
||||||
|
Please file reports on the
|
||||||
|
[GitHub Issue Tracker](https://github.com/domokit/sky_tools/issues).
|
||||||
|
@ -93,6 +93,13 @@ main(List<String> argv) async {
|
|||||||
|
|
||||||
ArgResults args = parser.parse(argv);
|
ArgResults args = parser.parse(argv);
|
||||||
|
|
||||||
|
if (args['help']) {
|
||||||
|
print('usage: pub run sky_tools:build_sky_apk <options>');
|
||||||
|
print('');
|
||||||
|
print(parser.usage);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Directory artifacts = new Directory('artifacts');
|
Directory artifacts = new Directory('artifacts');
|
||||||
File keystore = new File('${artifacts.path}/chromium-debug.keystore');
|
File keystore = new File('${artifacts.path}/chromium-debug.keystore');
|
||||||
File androidManifest = new File('${artifacts.path}/AndroidManifest.xml');
|
File androidManifest = new File('${artifacts.path}/AndroidManifest.xml');
|
||||||
|
@ -70,9 +70,11 @@ main(List<String> argv) async {
|
|||||||
HttpServer server;
|
HttpServer server;
|
||||||
try {
|
try {
|
||||||
server = await io.serve(handler, InternetAddress.LOOPBACK_IP_V4, port);
|
server = await io.serve(handler, InternetAddress.LOOPBACK_IP_V4, port);
|
||||||
|
print('Serving ${Directory.current.absolute.path} from '
|
||||||
|
'http://${server.address.address}:${server.port}.');
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
print(e);
|
print(e);
|
||||||
return;
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
server.defaultResponseHeaders
|
server.defaultResponseHeaders
|
||||||
|
Loading…
Reference in New Issue
Block a user