Tal Kol
3 years ago
6 changed files with 34 additions and 20 deletions
@ -1,8 +0,0 @@
|
||||
# this will download all dependencies for Ubuntu 16 (fift, func executables) and place them in ./bin |
||||
mkdir bin |
||||
wget https://github.com/ton-defi-org/ton-binaries/releases/download/ubuntu-16/fift -P ./bin |
||||
chmod +x ./bin/fift |
||||
wget https://github.com/ton-defi-org/ton-binaries/releases/download/ubuntu-16/func -P ./bin |
||||
chmod +x ./bin/func |
||||
wget https://github.com/ton-defi-org/ton-binaries/releases/download/fiftlib/fiftlib.zip -P ./bin |
||||
unzip ./bin/fiftlib.zip -d ./bin/fiftlib |
@ -0,0 +1,20 @@
|
||||
// This is a simple setup script in TypeScript that should work for most projects without modification
|
||||
// The purpose of this script is to install build dependencies (tools like "func" and "fift") automatically
|
||||
// We rely on this script for example to support Glitch.com (online IDE) and have it working in one click
|
||||
|
||||
import fs from "fs"; |
||||
import child_process from "child_process"; |
||||
|
||||
// check if we're running on glitch.com (glitch is running Ubuntu 16)
|
||||
if (fs.existsSync("/app/.glitchdotcom.json")) { |
||||
// make sure we're installed once
|
||||
if (!fs.existsSync("/app/bin")) { |
||||
child_process.execSync(`mkdir bin`); |
||||
child_process.execSync(`wget https://github.com/ton-defi-org/ton-binaries/releases/download/ubuntu-16/fift -P ./bin`); |
||||
child_process.execSync(`chmod +x ./bin/fift`); |
||||
child_process.execSync(`wget https://github.com/ton-defi-org/ton-binaries/releases/download/ubuntu-16/func -P ./bin`); |
||||
child_process.execSync(`chmod +x ./bin/func`); |
||||
child_process.execSync(`wget https://github.com/ton-defi-org/ton-binaries/releases/download/fiftlib/fiftlib.zip -P ./bin`); |
||||
child_process.execSync(`unzip ./bin/fiftlib.zip -d ./bin/fiftlib`); |
||||
} |
||||
} |
Loading…
Reference in new issue