From 20f1c784f63c8382f88c65dbececaf6ec56e8be4 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Sat, 22 Aug 2026 14:16:35 -0400 Subject: [PATCH] optimize gomuks build size --- hook/build.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hook/build.dart b/hook/build.dart index a893544..9315e04 100644 --- a/hook/build.dart +++ b/hook/build.dart @@ -1,4 +1,5 @@ import "dart:io"; + import "package:collection/collection.dart"; import "package:hooks/hooks.dart"; import "package:code_assets/code_assets.dart"; @@ -134,6 +135,8 @@ Future main(List args) => build(args, (input, output) async { "go", [ "build", + "-trimpath", + "-ldflags=-s -w", "-tags", tags, "-o",