Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lexisother/14164514beb1181f0d06217f47e3b118 to your computer and use it in GitHub Desktop.
Save lexisother/14164514beb1181f0d06217f47e3b118 to your computer and use it in GitHub Desktop.
Compilation instructions for the CrossCode Translateinator: https://github.com/dmitmel/crosscode-translateinator

Instructions

Quick and dirty setup

# clone main repo and begin installing pkgs in the background
git clone https://github.com/dmitmel/crosscode-translateinator
cd crosscode-translateinator
pnpm i &
# clone the second repo and start building
# main repo pnpm should exit partway through cargo
cd src/backend
git clone https://github.com/dmitmel/crosscode-localization-engine
cd crosscode-localization-engine
cargo b --release
cd node-bindings
# after cargo is done, get node gyp done
pnpm i
cd ..
cp -r node-bindings ../../../node_modules/crosscode-localization-engine
# next, build main
cd ../../..
pnpm build
# finally, run
cd target/development
echo '{ "name": "thanks, i hate it!", "main": "main.html" }' > package.json
nw-sdk .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment