Lokal debuggen ermöglichen
This commit is contained in:
parent
0c10ff4051
commit
923a35cad1
5
.vscode/cargo-build-version.sh
vendored
Executable file
5
.vscode/cargo-build-version.sh
vendored
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
# Patch Cargo.toml version from VERSION file before build
|
||||
VERSION=$(cat VERSION)
|
||||
sed -i "s/^version = ".*"/version = \"$VERSION\"/" Cargo.toml
|
||||
exec cargo build
|
||||
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
@ -4,7 +4,7 @@
|
||||
{
|
||||
"label": "cargo build",
|
||||
"type": "shell",
|
||||
"command": "cargo build",
|
||||
"command": ".vscode/cargo-build-version.sh",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user