lock gomuks src to a commit
This commit is contained in:
parent
e4f666b824
commit
cda971a335
2 changed files with 17 additions and 3 deletions
1
gomuks.lock
Normal file
1
gomuks.lock
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
daa0ba028e7d89ba9fc7580fc8099348e6145cb3
|
||||||
|
|
@ -12,9 +12,7 @@ void main(List<String> args) async {
|
||||||
print("Cloning Gomuks repository...");
|
print("Cloning Gomuks repository...");
|
||||||
final cloneResult = await Process.run("git", [
|
final cloneResult = await Process.run("git", [
|
||||||
"clone",
|
"clone",
|
||||||
"--depth",
|
"https://github.com/zachatrocity/gomuks",
|
||||||
"1",
|
|
||||||
"https://mau.dev/gomuks/gomuks",
|
|
||||||
repoDir.path,
|
repoDir.path,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
@ -24,6 +22,21 @@ void main(List<String> args) async {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final commit = await File.fromUri(
|
||||||
|
Platform.script.resolve("../gomuks.lock"),
|
||||||
|
).readAsString();
|
||||||
|
|
||||||
|
final checkoutResult = await Process.run("git", [
|
||||||
|
"checkout",
|
||||||
|
commit,
|
||||||
|
], workingDirectory: repoDir.path);
|
||||||
|
|
||||||
|
if (checkoutResult.exitCode != 0) {
|
||||||
|
throw Exception(
|
||||||
|
"Failed to check out locked commit: \n${checkoutResult.stderr}",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
print("Generating FFI Bindings...");
|
print("Generating FFI Bindings...");
|
||||||
|
|
||||||
final libclangPath = Platform.environment["LIBCLANG_PATH"];
|
final libclangPath = Platform.environment["LIBCLANG_PATH"];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue