release_updater 1.1.10 copy "release_updater: ^1.1.10" to clipboard
release_updater: ^1.1.10 copied to clipboard

A simple way to automatically update release/installation files in a local directory.

example/release_updater_example.dart

import 'dart:io';

import 'package:release_updater/release_updater_io.dart';

void main() async {
  var storage = ReleaseStorageDirectory('appx', Directory('/install/path'));

  var provider =
      ReleaseProviderHttp.baseURL('https://your.domain/appx/releases');

  var releaseUpdater = ReleaseUpdater(storage, provider);

  print('»  Updating...');
  var updatedToVersion = await releaseUpdater.update(verbose: true);

  if (updatedToVersion != null) {
    print('»  Updated to version: $updatedToVersion');
  }

  var runResult = await releaseUpdater.runReleaseProcess('run.exe', ['-a']);

  var exitCode = runResult!.exitCode;

  print('»  Exit code: $exitCode');
  print('»  Result: ${runResult.stdout}');

  exit(exitCode);
}
30
likes
160
points
1.92k
downloads

Publisher

unverified uploader

Weekly Downloads

A simple way to automatically update release/installation files in a local directory.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

archive, ascii_art_tree, base_codecs, collection, crypto, data_serializer, gcloud, googleapis_auth, mercury_client, path, pub_semver, shelf, shelf_gzip, shelf_static, yaml

More

Packages that depend on release_updater