kailua
kailua copied to clipboard
Non-Windows support in kailua_vsc
Caution: Currently the extension only works in Windows due to the packaging issue.
@Phrohdoh Good point! (I should migrate a private issue tracker to here, I'm tired of the presentation today ;) The main issue is that I cannot ship different .vsix
files per platform to the VS Code Marketplace. I've looked at several extensions that seemingly support multi-platform native binaries, and they... actually downloaded required binaries from the external locations in the extension. I think Kailua will eventually follow this path too, but this would mean the cross-platform build infrastructure, and that's not a trivial task (especially when you were working in private). I'm eventually planning to use trust for this.
FYI, @Phrohdoh
You can build vscode extension manually by running below,
# Cloning repository
git clone https://github.com/devcat-studio/kailua
cd kailua/kailua_vsc
# Install toolkits/dependencies.
npm install -g vsce
npm install -g typescript
npm install
# Package VSIX
(cd ..; cargo build --release) # without this, "vsce package" will be failed ;(
vsce package
# Install to Code
sudo rm -rf $HOME/.vscode/extensions/devCAT.kailua-* # remove previous installation
code --install-extension kailua-1.0.4.vsix
And optionally if you don't have rust.
# Install rustup (environment manager)
curl -sf https://static.rust-lang.org/rustup.sh | sudo sh
source $HOME/.cargo/env
# Change default env to nightly
rustup update nightly
rustup default nightly