Skip to content
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

Automate building scratch #5

Open
intrigus opened this issue Jan 15, 2020 · 0 comments
Open

Automate building scratch #5

intrigus opened this issue Jan 15, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@intrigus
Copy link
Collaborator

Currently scratch (https://github.com/intrigus/scratch-gui/) (changes are in https://github.com/intrigus/scratch-vm/) has to be manually build and released (e.g. https://github.com/intrigus/scratch-gui/releases/tag/0.2.0.int2).

This can and should be automated.

How to release (should work):

Get the needed libs
mkdir scratch
cd scratch
git clone https://github.com/intrigus/scratch-gui
git clone https://github.com/intrigus/scratch-vm
git clone https://github.com/llk/scratch-blocks # we don't change anything in this repository
cd scratch-vm
npm install
npm link
cd ../scratch-blocks
npm install
npm link
cd ../scratch-gui
npm install
npm link scratch-vm scratch-blocks
npm run-script build
cd build/
find . -name "*.js.map" -type f -delete # These files only add bloat. They are source maps. Might also be possible to not generate them in the first place
tar -cf scratch_dist.tar .
sha256sum scratch_dist.tar > scratch_dist.tar.sha256.txt

upload both scrach_dist.tar and scrach_dist.tar.sha256.txt to the github release page

@intrigus intrigus added the enhancement New feature or request label Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant