flathub / com.st.STM32CubeIDE

https://flathub.org/apps/details/com.st.STM32CubeIDE
2 stars 8 forks source link

Update versions (not working) #29

Open andreyplus opened 3 months ago

andreyplus commented 3 months ago

Updated:


This is my first pull request And this is my first time working with flatpak Please check it out


Fixes #27 #28

flathubbot commented 3 months ago

Started test build 142895

flathubbot commented 3 months ago

Build 142895 failed

flathubbot commented 3 months ago

Started test build 142896

flathubbot commented 3 months ago

Build 142896 failed

andreyplus commented 3 months ago
flatpak-builder: Downloading stm32cubeideDownloading https://www.st.com/content/ccc/resource/technical/software/sw_development_suite/group1/d3/77/3e/45/79/2b/47/46/stm32cubeide-lnx/files/st-stm32cubeide_1.16.0_21983_20240628_1741_amd64.sh.zip/jcr:content/translations/en.st-stm32cubeide_1.16.0_21983_20240628_1741_amd64.sh.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Failed to download sources: module stm32cubeide: HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)

Everything will download successfully if you use::

$ curl 'https://www.st.com/content/ccc/resource/technical/software/sw_development_suite/group1/d3/77/3e/45/79/2b/47/46/stm32cubeide-lnx/files/st-stm32cubeide_1.16.0_21983_20240628_1741_amd64.sh.zip/jcr:content/translations/en.st-stm32cubeide_1.16.0_21983_20240628_1741_amd64.sh.zip' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0' -H 'Accept-Encoding: identity' -O
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1119M    0 1119M    0     0  10.1M      0 --:--:--  0:01:49 --:--:-- 10.0M
FakeShemp commented 3 months ago

Thanks for the PR.

I don't know why this fails exactly. Maybe someone else knows.

echometerain commented 2 months ago

I made a pull request on @andreyplus's commit that uses the curl command above to pull the install scripts during the build step. It is currently working but I don't expect it to be accepted into flathub because this method is rather unorthodox. If you (the reader) really need the newer version though, feel free to clone the commit and build it yourself: https://github.com/andreyplus/com.st.STM32CubeIDE/pull/1

flathubbot commented 2 months ago

Started test build 146998

flathubbot commented 2 months ago

Build 146998 failed

echometerain commented 2 months ago

it seems that the builds are failing because the CI doesn't allow us to specify build-args which is needed to allow internet access during the build step

andreyplus commented 2 months ago

Can we upload these files to github?

echometerain commented 2 months ago

image according to the license agreement we should be able to redistribute the code as long as we include the license agreement. I could make a git repo that uses github actions to periodically download new versions of the installer, run the installer but unsimlink /bin/bash so setup.sh doesn't run, then modify setup.sh so it copies the already-extracted archive encoded within the installer instead of trying to extract it again. If we do it another way we wouldn't be able to upload it to github because github lfs only allows files under 100mb

andreyplus commented 2 months ago

That would be great!

Will flathub allow this?

echometerain commented 1 month ago

idk, I should try this some time during reading week

andreyplus commented 1 week ago

@echometerain How is your work going?

I found a link for CubeMX. But for CubeIDE, I can't find a link

andreyplus commented 1 week ago

We can use https://git.kuschel.at/public/stm?