-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mention the web build script in examples/README.md #517
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note, otherwise good
build.bash
Outdated
@@ -15,7 +15,7 @@ case $1 in | |||
RUSTFLAGS=--cfg=web_sys_unstable_apis cargo build --target wasm32-unknown-unknown $BUILD_FLAGS --bin $@ | |||
mkdir -p target/generated/ | |||
rm -rf target/generated/* | |||
cp -r examples/$1/resources target/generated/ || true | |||
cp -r examples/resources target/generated/ || true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is intentional - some examples (notably scene-viewer) do have resources that need to be copied. The || true
lets this command fail, only copying the resources if they exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I undid that change, but now there're two commits and i have no idea about squashing and merging them unfortunately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Github can squash for you, no worries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, cool! I had a look but couldn't find anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tried again manually and fucked it up again; feel free to deny/cancel this pull request, i've no idea what i'm doing.
Oh no wait, it should be git push --force
at the end! Every time i've tried it before the number of commits just got bigger...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong button
Head branch was pushed to by a user without write access
Description
I think the
build.bash
script should be mentioned in the README.Related Issues
The build script tried to move resources from the nonexistent directory
examples/cube/resources/
so I corrected that too.