From 0897fcc9f813d0d50d867470cd820165b3bf69c7 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Sat, 22 Jan 2022 10:45:33 +0800 Subject: [PATCH 1/2] Fix: more file pattern at update --- web/src/component/Manage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/component/Manage.js b/web/src/component/Manage.js index 000c43e..e68fb5f 100644 --- a/web/src/component/Manage.js +++ b/web/src/component/Manage.js @@ -13,7 +13,7 @@ function Manage() { body: JSON.stringify({ token: token, root: walkPath, - pattern: [".wav", ".mp3"], + pattern: [".wav", ".mp3", ".flac", ".ogg", ".aac", ".mka"], }), }) .then((res) => res.json()) From 2d85244cede80204f216c7ce8d65db033990221b Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Sat, 22 Jan 2022 11:40:41 +0800 Subject: [PATCH 2/2] Update: Makefile for external static lib --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d52d92a..b9b4202 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ dist: cd web && npm run build linux: - go build + go build -v -ldflags '-linkmode=external -extldflags=-static' -tags sqlite_omit_load_extension,netgo windows: CC=x86_64-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build