Skip to content

Instantly share code, notes, and snippets.

@saaj
Last active July 16, 2021 12:50
Show Gist options
  • Save saaj/fe04c16b5d87430dfe97396dc457d154 to your computer and use it in GitHub Desktop.
Save saaj/fe04c16b5d87430dfe97396dc457d154 to your computer and use it in GitHub Desktop.
Build Plotly Falcon AppImage with fresh SQLite3
#!/bin/bash -e
VERSION=4.1.0
mkdir dist
chmod 777 dist
cat << EOF > docker-build.sh
#!/bin/bash -e
mkdir build && cd build
wget https://github.com/plotly/falcon/archive/v$VERSION.zip
unzip v$VERSION.zip
cd falcon-$VERSION
sed -i 's/"Exec": "falcon-sql-client",//' package.json
sed -i 's/"tar.gz"/"AppImage"/' package.json
sed -i 's/"sqlite3": "^3.1.13",/"sqlite3": "^4.1.1",/' package.json
yarn install
npm run build
npm run dist-l
cp "release/Falcon SQL Client $VERSION.AppImage" \
/tmp/dist/Falcon-SQL-Client-$VERSION.AppImage
EOF
docker run --rm \
-v $PWD/dist:/tmp/dist \
-v $PWD/docker-build.sh:/tmp/build.sh \
-w /tmp node:8 bash build.sh
rm docker-build.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment