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

Initial packaging #1

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Continous Integration

on:
pull_request:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: snapcore/action-build@v1
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Store Publishing

on:
push:
branches:
- main

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: snapcore/action-build@v1
id: build
- uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
jfaltermeier marked this conversation as resolved.
Show resolved Hide resolved
with:
snap: ${{ steps.build.outputs.snap }}
release: stable
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.snap
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
# theia-ide-snap
Snap Package for the Theia IDE.
# Theia IDE Snap Package

[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-white.svg)](https://snapcraft.io/theia-ide)

## Install [![theia-ide](https://snapcraft.io/theia-ide/badge.svg)](https://snapcraft.io/theia-ide)

sudo snap install theia-ide --classic

([Don't have snapd installed?](https://snapcraft.io/docs/core/install))

## Development

snapcraft
sudo snap install theia-ide*.snap --dangerous --classic
55 changes: 55 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: theia-ide
version: 1.52.0
license: EPL-2.0 AND GPL-2.0-with-classpath-exception AND MIT
website: https://theia-ide.org/
source-code: https://github.com/eclipse-theia
donation: https://www.eclipse.org/sponsor/ide/
summary: Eclipse Theia IDE
description:
Open, Flexible and Extensible Cloud & Desktop IDE

base: core24
grade: stable
confinement: classic
compression: lzo

platforms:
amd64:
build-on: amd64
build-for: amd64

apps:
theia-ide:
command: opt/TheiaIDE/theia-ide-electron-app
desktop: usr/share/applications/theia-ide-electron-app.desktop
common-id: theia-ide-electron-app.desktop

parts:
theia-ide:
source: https://download.eclipse.org/theia/ide/1.52.0/linux/TheiaIDE.deb
plugin: dump
source-type: deb
override-prime: |
craftctl default
mkdir -p $SNAPCRAFT_PRIME/usr/share/icons/hicolor/512x512/apps/
mv $SNAPCRAFT_PRIME/usr/share/icons/hicolor/0x0/apps/theia-ide-electron-app.png $SNAPCRAFT_PRIME/usr/share/icons/hicolor/512x512/apps/theia-ide-electron-app.png
sed -i -Ee 's|^Icon=(.*)$|Icon=/usr/share/icons/hicolor/512x512/apps/\1.png|' $SNAPCRAFT_PRIME/usr/share/applications/theia-ide-electron-app.desktop
stage-packages:
- libx11-6
- libxcomposite1
- libxdamage1
- libxext6
- libxfixes3
- libxrandr2
- libasound2t64
- libatk1.0-0t64
- libatk-bridge2.0-0t64
- libatspi2.0-0t64
- libcairo2
- libcups2t64
- libgbm1
- libgtk-3-0t64
- libnspr4
- libnss3
- libpango-1.0-0
- libxcb1