diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 29e4466..b73eab1 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -13,8 +13,9 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ && apt-get -y install --no-install-recommends graphviz # [Optional] Uncomment the next lines to use go get to install anything else you need -# USER vscode +USER vscode # RUN go get -x # RUN npm install -g @angular/CLI # [Optional] Uncomment this line to install global node packages. # RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g " 2>&1 +RUN go install github.com/tc-hib/go-winres@latest \ No newline at end of file diff --git a/Makefile b/Makefile index 3831545..91bad34 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ build: - cd backend && GOOS=linux GOARCH=386 go build -o ../bin/legendsbrowser-linux-386 main.go - cd backend && GOOS=linux GOARCH=amd64 go build -o ../bin/legendsbrowser-linux-x64 main.go - cd backend && GOOS=windows GOARCH=386 go build -o ../bin/legendsbrowser-386.exe main.go - cd backend && GOOS=windows GOARCH=amd64 go build -o ../bin/legendsbrowser-x64.exe main.go - cd backend && GOOS=darwin GOARCH=amd64 go build -o ../bin/legendsbrowser-macos-x64 main.go - cd backend && GOOS=darwin GOARCH=arm64 go build -o ../bin/legendsbrowser-macos-m1 main.go + cd backend && GOOS=linux GOARCH=386 go build -o ../bin/legendsbrowser-linux-386 + cd backend && GOOS=linux GOARCH=amd64 go build -o ../bin/legendsbrowser-linux-x64 + cd backend && GOOS=windows GOARCH=386 go build -o ../bin/legendsbrowser-386.exe + cd backend && GOOS=windows GOARCH=amd64 go build -o ../bin/legendsbrowser-x64.exe + cd backend && GOOS=darwin GOARCH=amd64 go build -o ../bin/legendsbrowser-macos-x64 + cd backend && GOOS=darwin GOARCH=arm64 go build -o ../bin/legendsbrowser-macos-m1 run: cd backend && go run main.go \ No newline at end of file diff --git a/backend/rsrc_windows_386.syso b/backend/rsrc_windows_386.syso new file mode 100644 index 0000000..c42bf12 Binary files /dev/null and b/backend/rsrc_windows_386.syso differ diff --git a/backend/rsrc_windows_amd64.syso b/backend/rsrc_windows_amd64.syso new file mode 100644 index 0000000..a9edfe1 Binary files /dev/null and b/backend/rsrc_windows_amd64.syso differ diff --git a/backend/winres/winres.json b/backend/winres/winres.json new file mode 100644 index 0000000..f71520c --- /dev/null +++ b/backend/winres/winres.json @@ -0,0 +1,61 @@ +{ + "RT_GROUP_ICON": { + "APP": { + "0000": [ + "icon.png", + "icon16.png" + ] + } + }, + "RT_MANIFEST": { + "#1": { + "0409": { + "identity": { + "name": "", + "version": "" + }, + "description": "", + "minimum-os": "win7", + "execution-level": "as invoker", + "ui-access": false, + "auto-elevate": false, + "dpi-awareness": "system", + "disable-theming": false, + "disable-window-filtering": false, + "high-resolution-scrolling-aware": false, + "ultra-high-resolution-scrolling-aware": false, + "long-path-aware": false, + "printer-driver-isolation": false, + "gdi-scaling": false, + "segment-heap": false, + "use-common-controls-v6": false + } + } + }, + "RT_VERSION": { + "#1": { + "0000": { + "fixed": { + "file_version": "0.0.0.0", + "product_version": "0.0.0.0" + }, + "info": { + "0409": { + "Comments": "", + "CompanyName": "", + "FileDescription": "", + "FileVersion": "", + "InternalName": "", + "LegalCopyright": "", + "LegalTrademarks": "", + "OriginalFilename": "", + "PrivateBuild": "", + "ProductName": "", + "ProductVersion": "", + "SpecialBuild": "" + } + } + } + } + } +} \ No newline at end of file