mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
fix copy path
This commit is contained in:
parent
d52b05d11f
commit
41e9a39bce
2 changed files with 3 additions and 3 deletions
|
@ -35,12 +35,13 @@ Future<void> copyLibrary(String platform) async {
|
||||||
final pubCache = PubCache();
|
final pubCache = PubCache();
|
||||||
final pubCacheDir =
|
final pubCacheDir =
|
||||||
pubCache.getLatestVersion('libgit2dart')!.resolve()!.location;
|
pubCache.getLatestVersion('libgit2dart')!.resolve()!.location;
|
||||||
final libUri = pubCacheDir.uri.resolve(path.join(platform, getLibName()));
|
final libName = getLibName();
|
||||||
|
final libUri = pubCacheDir.uri.resolve(path.join(platform, libName));
|
||||||
|
|
||||||
logger.stdout('Copying libgit2 for $platform');
|
logger.stdout('Copying libgit2 for $platform');
|
||||||
final destination = path.join(libDir, platform);
|
final destination = path.join(libDir, platform);
|
||||||
Directory(destination).createSync(recursive: true);
|
Directory(destination).createSync(recursive: true);
|
||||||
File.fromUri(libUri).copySync(destination);
|
File.fromUri(libUri).copySync(path.join(destination, libName));
|
||||||
|
|
||||||
logger.stdout(
|
logger.stdout(
|
||||||
'${ansi.green}Done! libgit2 for $platform is now available!'
|
'${ansi.green}Done! libgit2 for $platform is now available!'
|
||||||
|
|
|
@ -7,7 +7,6 @@ environment:
|
||||||
flutter: ">=2.5.0"
|
flutter: ">=2.5.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
archive: ^3.1.6
|
|
||||||
args: ^2.3.0
|
args: ^2.3.0
|
||||||
cli_util: ^0.3.5
|
cli_util: ^0.3.5
|
||||||
ffi: ^1.1.2
|
ffi: ^1.1.2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue