Skip to content

Commit

Permalink
Merge branch 'changeset' of github.com:perspect3vism/ad4m-executor in…
Browse files Browse the repository at this point in the history
…to changeset
  • Loading branch information
fayeed committed Nov 2, 2022
2 parents ee03f78 + fedbf18 commit fcf2777
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 34 deletions.
1 change: 1 addition & 0 deletions host/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ temp
dist
build
default.nix
swipl-*
2 changes: 1 addition & 1 deletion host/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"type": "module",
"scripts": {
"build": "tsc",
"build": "tsc && yarn run build-commonjs",
"build-commonjs": "node scripts/esbuild.js",
"dev": "yarn run build && node --experimental-specifier-resolution=node build/cli.js",
"postinstall": "node scripts/postinstall.js",
Expand Down
32 changes: 20 additions & 12 deletions host/scripts/download-binaries-linux.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
#!/bin/bash
[ ! -d "./temp/binary" ] && mkdir -p "./temp/binary"

wget https://github.com/perspect3vism/ad4m-host/releases/download/binary-deps-0.0.161/hc-linux-0.0.56
mv hc-linux-0.0.56 temp/binary/hc
chmod +x temp/binary/hc
if [ ! -f "./temp/binary/hc" ]; then
wget https://github.com/perspect3vism/ad4m-host/releases/download/binary-deps-0.0.161/hc-linux-0.0.56
mv hc-linux-0.0.56 temp/binary/hc
chmod +x temp/binary/hc
fi

wget https://github.com/perspect3vism/ad4m-host/releases/download/binary-deps-0.0.161/holochain-linux-0.0.161
mv holochain-linux-0.0.161 temp/binary/holochain
chmod +x temp/binary/holochain
if [ ! -f "./temp/binary/holochain" ]; then
wget https://github.com/perspect3vism/ad4m-host/releases/download/binary-deps-0.0.161/holochain-linux-0.0.161
mv holochain-linux-0.0.161 temp/binary/holochain
chmod +x temp/binary/holochain
fi

wget https://github.com/perspect3vism/ad4m-host/releases/download/binary-deps-0.0.161/lair-keystore-linux-0.2.0
mv lair-keystore-linux-0.2.0 temp/binary/lair-keystore
chmod +x temp/binary/lair-keystore
if [ ! -f "./temp/binary/lair-keystore" ]; then
wget https://github.com/perspect3vism/ad4m-host/releases/download/binary-deps-0.0.161/lair-keystore-linux-0.2.0
mv lair-keystore-linux-0.2.0 temp/binary/lair-keystore
chmod +x temp/binary/lair-keystore
fi

wget https://github.com/perspect3vism/ad4m-host/releases/download/binary-deps-0.0.161/swipl-linux-x86.zip
unzip swipl-linux-x86.zip -d temp
rm -rf swipl-linux-x64.zip
if [ ! -f "./temp/swipl/bin/swipl" ]; then
wget https://github.com/perspect3vism/ad4m-host/releases/download/binary-deps-0.0.161/swipl-linux-x86.zip
unzip swipl-linux-x86.zip -d temp
rm -rf swipl-linux-x64.zip
fi
36 changes: 22 additions & 14 deletions host/scripts/download-binaries-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,28 @@

[ ! -d "./temp/binary" ] && mkdir -p "./temp/binary"

wget https://github.com/perspect3vism/ad4m-host/releases/download/binary-deps-0.0.161/hc-darwin-0.0.56
mv hc-darwin-0.0.56 temp/binary/hc
chmod +x temp/binary/hc
if [ ! -f "./temp/binary/hc" ]; then
wget https://github.com/perspect3vism/ad4m-host/releases/download/binary-deps-0.0.161/hc-darwin-0.0.56
mv hc-darwin-0.0.56 temp/binary/hc
chmod +x temp/binary/hc
fi

wget https://github.com/perspect3vism/ad4m-host/releases/download/binary-deps-0.0.161/holochain-darwin-0.0.161
mv holochain-darwin-0.0.161 temp/binary/holochain
chmod +x temp/binary/holochain
if [ ! -f "./temp/binary/holochain" ]; then
wget https://github.com/perspect3vism/ad4m-host/releases/download/binary-deps-0.0.161/holochain-darwin-0.0.161
mv holochain-darwin-0.0.161 temp/binary/holochain
chmod +x temp/binary/holochain
fi

wget https://github.com/perspect3vism/ad4m-host/releases/download/binary-deps-0.0.161/lair-keystore-darwin-0.2.0
mv lair-keystore-darwin-0.2.0 temp/binary/lair-keystore
chmod +x temp/binary/lair-keystore
if [ ! -f "./temp/binary/lair-keystore" ]; then
wget https://github.com/perspect3vism/ad4m-host/releases/download/binary-deps-0.0.161/lair-keystore-darwin-0.2.0
mv lair-keystore-darwin-0.2.0 temp/binary/lair-keystore
chmod +x temp/binary/lair-keystore
fi

wget https://github.com/perspect3vism/ad4m-host/releases/download/binary-deps-0.0.161/swipl-darwin-x86.zip
unzip swipl-darwin-x86.zip -d temp
mv temp/swipl-bundle-x86 temp/swipl
rm -rf temp/__MACOSX
rm -rf swipl-linux-x64.zip
if [ ! -f "./temp/swipl/bin/swipl" ]; then
wget https://github.com/perspect3vism/ad4m-host/releases/download/binary-deps-0.0.161/swipl-darwin-x86.zip
unzip swipl-darwin-x86.zip -d temp
mv temp/swipl-bundle-x86 temp/swipl
rm -rf temp/__MACOSX
rm -rf swipl-linux-x64.zip
fi
17 changes: 10 additions & 7 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
"outputs": ["dist/**", "lib/**", "build/**"]
},
"lint": {
"outputs": []
Expand All @@ -21,27 +21,30 @@

"package-macos": {
"dependsOn": ["^lint", "@perspect3vism/ad4m#build", "@perspect3vism/ad4m-executor#build", "ad4m-host#build"],
"outputs": ["dist/**"]
"outputs": ["dist/**", "lib/**", "build/**"]
},
"package-windows": {
"dependsOn": ["^lint", "@perspect3vism/ad4m#build", "@perspect3vism/ad4m-executor#build", "ad4m-host#build"],
"outputs": ["dist/**"]
"outputs": ["dist/**", "lib/**", "build/**"]
},
"package-linux": {
"dependsOn": ["^lint", "@perspect3vism/ad4m#build", "@perspect3vism/ad4m-executor#build", "ad4m-host#build"],
"outputs": ["dist/**"]
"outputs": ["dist/**", "lib/**", "build/**"]
},

"build-unix": {},
"build-windows": {},

"release-macos": {
"dependsOn": ["package-macos", "ad4min#build-unix"],
"dependsOn": ["package-macos", "build-unix"],
"outputs": ["dist/**"]
},
"release-windows": {
"dependsOn": ["package-windows", "ad4min#build-windows"],
"dependsOn": ["package-windows", "build-windows"],
"outputs": ["dist/**"]
},
"release-linux": {
"dependsOn": ["package-linux", "ad4min#build-unix"],
"dependsOn": ["package-linux", "build-unix"],
"outputs": ["dist/**"]
}
}
Expand Down

0 comments on commit fcf2777

Please sign in to comment.