Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
3a1e36894e |
3 changed files with 13 additions and 3 deletions
2
gomuks
2
gomuks
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9444dd293664c300c6e710bb6cddcd9c6cab365d
|
Subproject commit 2d566a2b585e2dba882714f7ca741a52afb36237
|
||||||
|
|
@ -57,7 +57,17 @@ Future<void> main(List<String> args) => build(args, (input, output) async {
|
||||||
break;
|
break;
|
||||||
case OS.macOS:
|
case OS.macOS:
|
||||||
libFileName = "libgomuks.dylib";
|
libFileName = "libgomuks.dylib";
|
||||||
extraEnv = {"SDKROOT": await getXCodeSDK()};
|
extraEnv = {
|
||||||
|
"SDKROOT": await getXCodeSDK(),
|
||||||
|
"CGO_ENABLED": "1",
|
||||||
|
"GOARCH": switch (targetArch) {
|
||||||
|
Architecture.arm64 => "arm64",
|
||||||
|
Architecture.x64 => "amd64",
|
||||||
|
_ => throw UnsupportedError(
|
||||||
|
"Unsupported macOS architecture: $targetArch",
|
||||||
|
),
|
||||||
|
},
|
||||||
|
};
|
||||||
break;
|
break;
|
||||||
case OS.windows:
|
case OS.windows:
|
||||||
libFileName = "libgomuks.dll";
|
libFileName = "libgomuks.dll";
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ buildGoModule (
|
||||||
|
|
||||||
src = "${src}/gomuks";
|
src = "${src}/gomuks";
|
||||||
|
|
||||||
vendorHash = "sha256-C03ss88QAnmZu+XxoHhc1M/261xFl8hR/pzLbU37Qe8=";
|
vendorHash = "sha256-fnRuw+zt6Iofv0kqypx+jy1gLvOHTQvJsOwSKu7kGLs=";
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue