# Pxt build with metadata

**URL:** <https://forum.makecode.com/t/pxt-build-with-metadata/31335>\
**Category:** Help\
**Created:** [October 24, 2024, 5:44pm UTC](https://forum.makecode.com/t/pxt-build-with-metadata/31335 "2024-10-24T17:44:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [October 24, 2024, 5:44pm UTC](https://forum.makecode.com/t/pxt-build-with-metadata/31335/1 "2024-10-24T17:44:42Z")

</div>

I’m trying to build the `binary.js` that is used on GitHub pages with the `pxt` tool. In the [GitHub repo](https://github.com/UnsignedArduino/Racers), (I’m just using one of my games as an example) [`assets/js/binary.js`](https://github.com/UnsignedArduino/Racers/blob/master/assets/js/binary.js) has this little metadata at the top of the JS file:

```js
// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.8.30/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"1.3.0","target":"arcade","targetVersion":"1.8.30","repo":"unsignedarduino/racers"}
// total=3116124 new=17.65% cached=78.00% other=4.35%
(function (ectx) {
'use strict';
// ...more code

```

But when I use `pxt build --cloud` on my machine, the `built/debug/binary.js` I get doesn’t have this metadata:

```js
// total=3298379 new=95.74% cached=0.00% other=4.26%
(function (ectx) {
'use strict';
// ...more code

```

How can I make the pxt tool add this metadata so the correct simulator is used? I’ve tried looking at the differences between the [GitHub Action](https://github.com/UnsignedArduino/Racers/blob/master/.github/workflows/makecode-release.yml) and what commands I’m running but there seems to be no difference, is it an environment thing?

Also, it appears like I’m building a debug binary, is there a way to build a “production ready” binary?

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [April 8, 2025, 12:47pm UTC](https://forum.makecode.com/t/pxt-build-with-metadata/31335/2 "2025-04-08T12:47:20Z")

</div>

Apparently I’ve already asked about this before @richard lol  
(I understand if you can’t say anything since it’s closed source)

* * *

> **For stream today (math spoiler)**
>
> You’re supposed to use the inverse of the rotation matrix. Since I’m bad at linear algebra I used Wolfram Alpha to find the [inverse](https://www.wolframalpha.com/input?i2d=true&i=inverse+of+%7B%7Bcos%5C%2840%29a%5C%2841%29%2C-sin%5C%2840%29a%5C%2841%29%7D%2C%7Bsin%5C%2840%29a%5C%2841%29%2Ccos%5C%2840%29a%5C%2841%29%7D%7D) and then [simplified it](https://www.wolframalpha.com/input?i2d=true&i=%7B%7Bcos%5C%2840%29a%5C%2841%29%2Csin%5C%2840%29a%5C%2841%29%7D%2C%7B-sin%5C%2840%29a%5C%2841%29%2Ccos%5C%2840%29a%5C%2841%29%7D%7D%7B%7Bx%27%7D%2C%7By%27%7D%7D), which I checked with AI. I got the `x` part eventually I guess… 😅

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [April 8, 2025, 1:04pm UTC](https://forum.makecode.com/t/pxt-build-with-metadata/31335/3 "2025-04-08T13:04:55Z")

</div>

Guess who finally connected the dots

```auto
F:\TestingPXT\Racers>pxt build
Using target arcade with build engine codal
  target: v2.0.48 F:\TestingPXT\node_modules\pxt-arcade
  pxt-core: v11.3.51 F:\TestingPXT\node_modules\pxt-core
building F:\TestingPXT\Racers
invalid upgrade rule: github:microsoft/arcade-sprite-data#v0.1.0 -> m
invalid upgrade rule: github:microsoft/arcade-sprite-data#v0.1.0 -> i
invalid upgrade rule: github:microsoft/arcade-sprite-data#v0.1.0 -> n
invalid upgrade rule: github:microsoft/arcade-sprite-data#v0.1.0 -> :
invalid upgrade rule: github:microsoft/arcade-sprite-data#v0.1.0 -> v
invalid upgrade rule: github:microsoft/arcade-sprite-data#v0.1.0 -> 0
invalid upgrade rule: github:microsoft/arcade-sprite-data#v0.1.0 -> .
invalid upgrade rule: github:microsoft/arcade-sprite-data#v0.1.0 -> 0
invalid upgrade rule: github:microsoft/arcade-sprite-data#v0.1.0 -> .
invalid upgrade rule: github:microsoft/arcade-sprite-data#v0.1.0 -> 6

F:\TestingPXT\Racers>

```

```js
// meta={"simUrl":"https://trg-arcade.userpxt.io/v2.0.48/---simulator","cdnUrl":"https://cdn.makecode.com","version":"1.3.2","target":"arcade","targetVersion":"2.0.48","repo":"unsignedarduino/racers"}

```

It literally says the target version in the output of the command 🤦 🤦 🤦
