return to erlang target

This commit is contained in:
Lunarmagpie 2023-03-10 06:04:01 -05:00
parent bff3b93569
commit 3a21fb37e0
4 changed files with 7 additions and 22 deletions

View file

@ -1,24 +1,12 @@
#!/usr/bin/env bash
# echo "Printing Empty Directory"
# ls -R -a
# echo "Printing piston files"
# cd /piston/packages/gleam/0.27.0/
# ls -R -a
gleam new project --skip-git
mkdir project/build
rsync /piston/packages/gleam/0.27.0/project/manifest.toml project/manifest.toml
rsync /piston/packages/gleam/0.27.0/project/build/packages* project/build -r
# rsync template_project/build/packages* project/build -r
# rsync template_project/manifest.toml project/manifest.toml
cp /piston/packages/gleam/0.27.0/project/manifest.toml project/manifest.toml
cp /piston/packages/gleam/0.27.0/project/build/packages* project/build -r || true
cat $1 > project/src/project.gleam
cd project
# echo "Printing Copied Files"
ls -R -a
gleam build --target=javascript
gleam build