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

outdated

A simple way to 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();

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

  var runExecutable = await storage.currentReleaseFilePath('run.exe');

  print('-- Running: $runExecutable');
  Process.run(runExecutable!, []);
}
29
likes
0
pub points
58%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

archive, collection, mercury_client, path, pub_semver, shelf, shelf_gzip, shelf_static, yaml

More

Packages that depend on release_updater