Skip to content

Commit

Permalink
Final tweaks, for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell committed Sep 14, 2023
1 parent 3074851 commit 4c3ba65
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .justfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ build *ARGS:
# Packs the language server into the VSCode extension build directory
[no-exit-message]
vscode-pack DEBUG="false":
[private]
vscode-pack TARGET_DIR DEBUG="false":
#!/usr/bin/env bash
set -euo pipefail
#
Expand All @@ -35,10 +36,10 @@ vscode-pack DEBUG="false":
#
if [[ "{{DEBUG}}" == "true" ]]; then
mkdir -p {{VSCODE}}/out/debug/
cp target/debug/{{BIN_NAME}}{{EXT}} {{VSCODE}}/out/debug/
cp {{TARGET_DIR}}/debug/{{BIN_NAME}}{{EXT}} {{VSCODE}}/out/debug/
else
mkdir -p {{VSCODE}}/out/release/
cp target/release/{{BIN_NAME}}{{EXT}} {{VSCODE}}/out/release/
cp {{TARGET_DIR}}/release/{{BIN_NAME}}{{EXT}} {{VSCODE}}/out/release/
fi
#
cp CHANGELOG.md {{VSCODE}}/CHANGELOG.md
Expand Down Expand Up @@ -67,7 +68,7 @@ vscode-install DEBUG="false":
just build --release
fi
echo "📦 [2/4] Packing language server..."
just vscode-pack {{DEBUG}} > /dev/null
just vscode-pack "target" {{DEBUG}} > /dev/null
echo "🧰 [3/4] Building extension..."
just vscode-build > /dev/null
echo "🚀 [4/4] Installing extension..."
Expand All @@ -86,7 +87,7 @@ vscode-publish TARGET_TRIPLE VSCODE_TARGET:
echo "🚧 [1/4] Building language server..."
just build --release --target {{TARGET_TRIPLE}}
echo "📦 [2/4] Packing language server..."
just vscode-pack
just vscode-pack "target/{{TARGET_TRIPLE}}"
echo "🧰 [3/4] Building extension..."
just vscode-build
echo "🚀 [4/4] Publishing extension..."
Expand Down

0 comments on commit 4c3ba65

Please sign in to comment.