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

Add build instruction for Linux and setup AppImage builds #20

Open
ghost opened this issue Aug 15, 2019 · 22 comments
Open

Add build instruction for Linux and setup AppImage builds #20

ghost opened this issue Aug 15, 2019 · 22 comments

Comments

@ghost
Copy link

ghost commented Aug 15, 2019

Please, add instruction for build Astree on Linux.

Also, lets setup Travis CI for auto-build AppImage (portable package for Linux) for each commit:

For example, take a look on LeoCAD .travis.yml implementation:

And here is what resulted builds would look like

P.S.: I really like Astree app idea! 😉 And would be happy to test it as, by myself, has needs to design few optical devices 📷 🔬 🔭

@probonopd
Copy link
Contributor

Blocked by #22

@edeforas
Copy link
Owner

edeforas commented Aug 17, 2019 via email

@probonopd
Copy link
Contributor

Blocked by #22

I can't investigate compilation errors unrelated to AppImage. Once we can get it to compile, I can help to make an AppImage.

@edeforas
Copy link
Owner

edeforas commented Sep 5, 2019 via email

@edeforas
Copy link
Owner

edeforas commented Sep 7, 2019

Now its compile ( as in https://travis-ci.com/edeforas/Astree/builds/126314730 )
I added some garbage for the linux install , but without success

Thanks

@edeforas
Copy link
Owner

edeforas commented Sep 7, 2019

Shoudl now run in limited mode (no glass) , will re add glass under linux

@ghost
Copy link
Author

ghost commented Sep 7, 2019

in limited mode (no glass) , will re add glass under linux

Does it happen due to hardcoded path to data assets?

FYI @TheAssassin, @probonopd

@edeforas
Copy link
Owner

edeforas commented Sep 7, 2019 via email

@probonopd
Copy link
Contributor

Please try my test AppImage:
https://github.com/probonopd/Astree/releases/tag/continuous

What works, what is broken?

@probonopd
Copy link
Contributor

On Linux, /usr/share/astree/glass but please don't make it a hardcoded path but relative to the main binary.

You could use QString QCoreApplication::applicationDirPath() and construct a relative path to ../share/astree/glass/ from there.

@edeforas
Copy link
Owner

edeforas commented Sep 16, 2019 via email

@edeforas
Copy link
Owner

Screenshot from 2019-09-16 13-38-21

@ghost
Copy link
Author

ghost commented Nov 3, 2019

@edeforas, any development progress?

@edeforas
Copy link
Owner

edeforas commented Nov 3, 2019 via email

@ghost
Copy link
Author

ghost commented Nov 28, 2019

Tried to have a Linux VM

@edeforas, maybe, just setup Travis CI to deploy builds directly to GitHub releases?

FTR, You could try Puppy Linux LiveUSB instead of full Ubuntu install

@edeforas
Copy link
Owner

edeforas commented Feb 6, 2020 via email

@ghost
Copy link
Author

ghost commented Feb 6, 2020

Any wishes or bug?

Please, upload your latest AppImage for testing, as as for now its not available for download.

@ghost
Copy link
Author

ghost commented May 30, 2020

As see Astree 1.22 released:

But there are no such source release:

Also, @edeforas what about AppImage binary for 1.22? Has you looked in .travis.yml?

@ghost
Copy link
Author

ghost commented May 31, 2020

For temporary purpose AppImage for Astree `1.221 available here:

But, @edeforas, I highly recommends you add token for Travis as described bellow:

$GITHUB_TOKEN missing, please set it in the Travis CI settings of this project

You can get one from https://github.com/settings/tokens

@edeforas
Copy link
Owner

edeforas commented May 31, 2020 via email

@ghost
Copy link
Author

ghost commented May 31, 2020

Something still missed. Does you add GitHub generated token on Travis CI?

...
$ bash upload.sh Astree*.AppImage*
Running on Travis CI
TRAVIS_COMMIT: 007939e5b61d16a2d0f5163dfff8a6d0f2cd2b5b
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   113  100   113    0     0    559      0 --:--:-- --:--:-- --:--:--   559
100   113  100   113    0     0    559      0 --:--:-- --:--:-- --:--:--   559
tag_infos: {
  "message": "Not Found",
  "documentation_url": "https://developer.github.com/v3/git/refs/#get-a-reference"
}
tag_sha: 
Getting the release ID...
release_url: https://api.github.com/repos/edeforas/Astree/releases/tags/continuous
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   129  100   129    0     0    792      0 --:--:-- --:--:-- --:--:--   796
release_infos: {
  "message": "Not Found",
  "documentation_url": "https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name"
}
release ID: 
upload_url: 
release_url: 
target_commit_sha: 
TRAVIS_COMMIT != target_commit_sha, hence deleting continuous...
Delete the tag...
delete_url: https://api.github.com/repos/edeforas/Astree/git/refs/tags/continuous
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   116  100   116    0     0    720      0 --:--:-- --:--:-- --:--:--   725
{
  "message": "Not Found",
  "documentation_url": "https://developer.github.com/v3/git/refs/#delete-a-reference"
}
Create release...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   356  100   120  100   236    761   1497 --:--:-- --:--:-- --:--:--  1503
{
  "message": "Not Found",
  "documentation_url": "https://developer.github.com/v3/repos/releases/#create-a-release"
}
upload_url: 
release_url: 
Cannot figure out the release URL for continuous
...

@edeforas
Copy link
Owner

edeforas commented Jun 6, 2020

GitHub generated token on Travis CI?
Yes, don't understand what to to do here...

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

No branches or pull requests

2 participants