Skip to content

Commit

Permalink
add win64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
mopo3ilo committed Jun 1, 2022
1 parent d701047 commit 4e1697b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ __debug_bin*
*.yml
*.upx
1cv8metadata
1cv8metadata.exe
json_viewer.py
!.vscode/*.json
20 changes: 7 additions & 13 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,23 @@
"version": "2.0.0",
"tasks": [
{
"label": "go build",
"label": "build.elf",
"type": "shell",
"group": "build",
"command": "go build -ldflags=\"-s\" ."
"command": "mkdir -p build && GOOS=linux GOARCH=amd64 go build -ldflags=\"-s\" -o ./1cv8metadata . && strip ./1cv8metadata && upx -9 -q ./1cv8metadata",
},
{
"label": "strip",
"label": "build.exe",
"type": "shell",
"group": "build",
"command": "strip 1cv8metadata"
},
{
"label": "upx",
"type": "shell",
"group": "build",
"command": "upx -9 1cv8metadata"
"command": "mkdir -p build && GOOS=windows GOARCH=amd64 go build -ldflags=\"-s\" -o ./1cv8metadata.exe . && strip ./1cv8metadata.exe && upx -9 -q ./1cv8metadata.exe",
},
{
"label": "build",
"group": "build",
"dependsOn": [
"go build",
"strip",
"upx"
"build.elf",
"build.exe",
],
"dependsOrder": "sequence",
"problemMatcher": []
Expand Down

0 comments on commit 4e1697b

Please sign in to comment.