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

Automated Linux snap builds #20

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

dmiller309
Copy link
Contributor

Hi András,

This PR adds support for automated building of the Scelight snap on Linux. You should have just received an email inviting you to be a collaborator on the Scelight snap. I'd like to make you the owner of that package.

Here's how to take ownership of the Scelight snap and push a new version:

  1. Open the email from Snapcraft and become a collaborator on the project. This will let you view the dashboards and change the app settings.
  2. Send me an email or chat when you're ready. I'll make a post (like this one) requesting that you become the owner of the "scelight" snap. Alternatively, you can make the post and just link to this PR.
  3. Go to https://build.snapcraft.io. Currently, the Scelight snap is built from my downstream repo. Remove that and set Scelight to build from your GitHub repo.
  4. When you push to your master branch, it will trigger an automated Scelight build to its Edge snap channel.
  5. You can install the most recent Scelight release from the Edge channel with sudo snap install --channel=edge scelight; sudo snap refresh --channel=edge scelight.
  6. When you're satisfied that the snap runs smoothly, promote the current Edge Scelight release to the Stable channel via the dashboard at https://snapcraft.io/scelight/releases (you can also do it through the CLI).
  7. To switch back from the Edge Scelight channel to the Stable channel that the general public uses, run sudo snap install --channel=stable scelight.

I tried to set up automated Scelight snap builds 3 months ago, but Snapcraft only added support for building core18 snaps like Scelight 1 month ago. Send me an email or gChat if you have any questions or would like help.

//Andrew Miller

Created a custom Snapcraft plugin "gradle-application" for running `gradle build` and extracting the built distribution/scelight.tar to the install target.
The error message was: ```
Failed to load plugin: properties failed to load for scelight: 'source' is a required property
Build failed
```

* Restrict the architectures to ia32 and amd64.
* Make "source" not required (probably won't work because if there is no source then it won't work).
…uilt on.

Run on the same architecture as build seems like it should be the default option, but maybe it's not?
Referenced https://forum.snapcraft.io/t/architectures/4972
@icza
Copy link
Owner

icza commented Apr 1, 2019

Hi Andrew,

Thanks a lot for this. I will check it when I have time.

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