Skip to content

Instantly share code, notes, and snippets.

@bfollington
Created January 9, 2021 06:42
Show Gist options
  • Save bfollington/7aaeac496451533504e912da8409ab64 to your computer and use it in GitHub Desktop.
Save bfollington/7aaeac496451533504e912da8409ab64 to your computer and use it in GitHub Desktop.
Release cljs build in itch compatible format
# run `lein uberjar` before releasing
echo "preparing..."
mkdir -p ./dist/js
mkdir -p ./dist/css
mkdir -p ./dist/assets
echo "copying files..."
cp ./target/cljsbuild/public/js/app.js ./dist/js/app.js
cp -r ./resources/public/css ./dist
cp -r ./resources/public/assets ./dist
cp ./resources/public/index.html ./dist
echo "packaging..."
zip -r dist.zip ./dist
echo "uploading..."
butler push dist.zip twopm/in-passing:web
echo "done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment