Skip to content
This repository was archived by the owner on Jun 14, 2022. It is now read-only.

Non-Windows support in kailua_vsc #1

Open
phrohdoh opened this issue Apr 25, 2017 · 2 comments
Open

Non-Windows support in kailua_vsc #1

phrohdoh opened this issue Apr 25, 2017 · 2 comments
Assignees

Comments

@phrohdoh
Copy link

Caution: Currently the extension only works in Windows due to the packaging issue.

@lifthrasiir lifthrasiir self-assigned this Apr 25, 2017
@lifthrasiir lifthrasiir changed the title Which packaging issue is preventing non-Windows extensions? Non-Windows support in kailua_vsc Apr 25, 2017
@lifthrasiir
Copy link
Contributor

@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.

@JamesKim2998
Copy link

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

@lifthrasiir lifthrasiir mentioned this issue Jun 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants