wails project init

This commit is contained in:
2024-12-13 20:54:24 -06:00
parent 34c1319f44
commit 17c35e59c5
48 changed files with 4366 additions and 2 deletions

32
.vscode/launch.json vendored Executable file
View File

@@ -0,0 +1,32 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Wails: Production vastop",
"type": "go",
"request": "launch",
"mode": "exec",
"program": "${workspaceFolder}/build/bin/vastop.exe",
"preLaunchTask": "build",
"cwd": "${workspaceFolder}"
},
{
"name": "Wails: Debug vastop",
"type": "go",
"request": "launch",
"mode": "exec",
"program": "${workspaceFolder}/build/bin/vastop.exe",
"preLaunchTask": "build debug",
"cwd": "${workspaceFolder}"
},
{
"name": "Wails: Dev vastop",
"type": "go",
"request": "launch",
"mode": "exec",
"program": "${workspaceFolder}/build/bin/vastop.exe",
"preLaunchTask": "build dev",
"cwd": "${workspaceFolder}"
}
]
}

111
.vscode/tasks.json vendored Executable file
View File

@@ -0,0 +1,111 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}",
"env": {
"CGO_ENABLED": "1"
}
},
"osx": {
"options": {
"env": {
"CGO_CFLAGS": "-mmacosx-version-min=10.13",
"CGO_LDFLAGS": "-framework UniformTypeIdentifiers -mmacosx-version-min=10.13"
}
}
},
"windows": {
"options": {
"env": {
"CGO_ENABLED": "0"
}
}
},
"command": "go",
"args": [
"build",
"-tags",
"production,desktop",
"-gcflags",
"all=-N -l",
"-o",
"build/bin/vastop.exe"
]
},
{
"label": "build debug",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}",
"env": {
"CGO_ENABLED": "1"
}
},
"osx": {
"options": {
"env": {
"CGO_CFLAGS": "-mmacosx-version-min=10.13",
"CGO_LDFLAGS": "-framework UniformTypeIdentifiers -mmacosx-version-min=10.13"
}
}
},
"windows": {
"options": {
"env": {
"CGO_ENABLED": "0"
}
}
},
"command": "go",
"args": [
"build",
"-tags",
"production,desktop,debug",
"-gcflags",
"all=-N -l",
"-o",
"build/bin/vastop.exe"
]
},
{
"label": "build dev",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}",
"env": {
"CGO_ENABLED": "1"
}
},
"osx": {
"options": {
"env": {
"CGO_CFLAGS": "-mmacosx-version-min=10.13",
"CGO_LDFLAGS": "-framework UniformTypeIdentifiers -mmacosx-version-min=10.13"
}
}
},
"windows": {
"options": {
"env": {
"CGO_ENABLED": "0"
}
}
},
"command": "go",
"args": [
"build",
"-tags",
"dev",
"-gcflags",
"all=-N -l",
"-o",
"build/bin/vastop.exe"
]
}
]
}