This commit is contained in:
Peli de Halleux 2020-04-04 18:33:01 -07:00
Родитель 769ccfb9fa
Коммит d59de75574
6 изменённых файлов: 9387 добавлений и 9994 удалений

47
.github/workflows/makecode-release.yml поставляемый
Просмотреть файл

@ -1,4 +1,4 @@
name: MakeCode Arcade Binary Release
name: MakeCode Arcade Release
on:
release:
@ -28,69 +28,36 @@ jobs:
pxt clean
pxt install
pxt build --cloud
- name: upload js
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./built/debug/binary.js
asset_name: arcade.js
asset_content_type: application/octet-stream
- name: build D51
continue-on-error: true
run: |
pxt clean
pxt install --hw samd51
pxt build --hw samd51 --cloud
cp ./built/binary.uf2 binary-d51.uf2
- name: upload D51
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./built/binary.uf2
asset_name: arcade-d51.uf2
asset_content_type: application/octet-stream
- name: build F4
continue-on-error: true
run: |
pxt clean
pxt install --hw stm32f401
pxt build --hw stm32f401 --cloud
cp ./built/binary.uf2 binary-f4.uf2
- name: upload F4
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./built/binary.uf2
asset_name: arcade-f4.uf2
asset_content_type: application/octet-stream
- name: build P0
continue-on-error: true
run: |
pxt clean
pxt install --hw rpi
pxt build --hw rpi --cloud
cp ./built/binary.uf2 binary-p0.uf2
- name: upload P0
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./built/binary.uf2
asset_name: arcade-p0.uf2
asset_content_type: application/octet-stream
- name: bundle all
run: |
cat binary-*.uf2 > built/arcade-all.uf2
cat binary-*.uf2 > built/arcade.uf2
- name: upload bundled
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./built/arcade-all.uf2
asset_name: arcade-all.uf2
asset_path: ./built/arcade.uf2
asset_name: arcade.uf2
asset_content_type: application/octet-stream

19324
assets/js/binary.js сгенерированный

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

2
assets/js/loader.js сгенерированный
Просмотреть файл

@ -26,7 +26,7 @@ function makeCodeRun(options) {
if (meta.version && meta.repo && vel) {
var ap = document.createElement("a");
ap.download = "arcade.uf2";
ap.href = "https://github.com/" + meta.repo + "/releases/download/v" + meta.version + "/arcade-all.uf2";
ap.href = "https://github.com/" + meta.repo + "/releases/download/v" + meta.version + "/arcade.uf2";
ap.innerText = "v" + meta.version;
vel.appendChild(ap);
}

2
assets/version.txt сгенерированный
Просмотреть файл

@ -1 +1 @@
0.0.8
0.0.9

4
index.html сгенерированный
Просмотреть файл

@ -155,8 +155,8 @@
</iframe>
<footer id="footer">
Made with ♡ in <a href="https://arcade.makecode.com">MakeCode</a> by <a
href="https://github.com/{{ site.github.owner_name }}">{{ site.github.owner_name }}</a>.
<a href="https://github.com/{{ site.github.owner_name }}/{{ site.github.repository_name }}">GitHub</a>
href="https://github.com/{{ site.github.owner_name }}/{{ site.github.repository_name }}">{{ site.github.owner_name }}</a>.
<a href="https://{{ site.github.owner_name }}.github.io/{{ site.github.repository_name }}/README">Manual</a>
<span id="version"></span>
<div id="fullscreen"></div>
</footer>

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": ".menu",
"version": "0.0.8",
"version": "0.0.9",
"description": "",
"dependencies": {
"device": "*",