athombv / homey-apps-sdk-issues

This issue tracker is for Homey Developers using the Apps SDK.
21 stars 4 forks source link

homey app submit ignores code changes in .homeycompose (or does not build the app) #366

Open RonnyWinkler opened 1 month ago

RonnyWinkler commented 1 month ago

If you did homey app run to test, then you change the version and changelog for upload in .homeycompose/app.json and call homey app publish, the latest changes are not published. It takes the last build (from homey app run and ignores the latest code changes).

The version check is showing the previous version (from ./app.json) and not the current one (from .homeycompose/app.son).

Example:

? Do you want to update your app's version number? (current v1.1.13) (Y/n)

After a homey app run and homey app publish, the version is updated in ./app.json and the correct version is shown:

? Do you want to update your app's version number? (current v1.2.0) No
✓ Pre-processing app...
Added FlowCard `alarm_camera_offline_false` for type `triggers`
Added FlowCard `alarm_camera_offline_general` for type `triggers`
Added FlowCard `alarm_camera_offline_true` for type `triggers`

If you don't build the app again with homey app run, it's possible to upload to the store nevertheless. But the store uses the "old" version. The example is from an app where I published the new version (updated version in .homeycompose/app.json) without running the app again. It uploads a new build with the previous version stored in ./app.json. grafik

jeroenwienk commented 1 month ago

I believe this should fix the issue https://github.com/athombv/node-homey/commit/2e28cdd09c088f1e36b0e29f009b30cc1b9c81a4 it's shipped in version 3.7.10