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

update to SIOT 0.14.10 and simplify build #899

Merged
merged 1 commit into from
Feb 6, 2024
Merged

update to SIOT 0.14.10 and simplify build #899

merged 1 commit into from
Feb 6, 2024

Conversation

cbrake
Copy link
Contributor

@cbrake cbrake commented Feb 5, 2024

No description provided.

@@ -7,11 +7,11 @@ LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SECTION = "apps"

DEPENDS += "go-native elm-binary-native nodejs-native nodejs-oe-cache-native gyp-native python3-packaging-native curl-native ca-certificates-native"
DEPENDS += "go-native"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm will it work without elm compiler ? then we can get rid of meta-elm-binary layer too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we actually commit pre-built front-end assets into the repo so that SIOT will work as a simple Go package. You can do: go run github.com/simpleiot/simpleiot/cmd/siot@latest. The frontend package is 60KB, so it is tiny enough to just commit to the repo when it changes.

https://github.com/simpleiot/simpleiot/blob/master/frontend/public/dist/elm.js.gz

The newish go embed stuff is built into the go tools, so we don't need any external tools for embedding any more.

@kraj kraj merged commit 36d9897 into master Feb 6, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants