Skip to content

Commit

Permalink
Fix build-roblox-model.sh script (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeparlefrancais authored Mar 28, 2024
1 parent 984a94a commit 6a4ad95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changelog

- fix `build-roblox-asset.sh` script ([#11](https://github.com/seaofvoices/generator-luau/pull/11))
- fix `remove-tests.sh` script to support both `lua` and `luau` extensions ([#10](https://github.com/seaofvoices/generator-luau/pull/10))
- move Roblox `test-place.rbxl` file into the `temp` directory ([#9](https://github.com/seaofvoices/generator-luau/pull/9))

Expand Down
11 changes: 8 additions & 3 deletions src/app/templates/scripts/build-roblox-model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,18 @@ rm -rf temp
mkdir -p temp
cp -r src/ temp/
cp -rL node_modules/ temp/
cp "$DARKLUA_CONFIG" "temp/$DARKLUA_CONFIG"

./scripts/remove-tests.sh temp

rojo sourcemap <%- rojoConfig %> -o sourcemap.json
rojo sourcemap <%- rojoConfig %> -o temp/sourcemap.json

darklua process --config "$DARKLUA_CONFIG" temp/src temp/src
darklua process --config "$DARKLUA_CONFIG" temp/node_modules temp/node_modules
cd temp

darklua process --config "$DARKLUA_CONFIG" src src
darklua process --config "$DARKLUA_CONFIG" node_modules node_modules

cd ..

cp <%- rojoConfig %> temp/

Expand Down

0 comments on commit 6a4ad95

Please sign in to comment.