Skip to content

Commit

Permalink
Initial packaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Oct 2, 2024
1 parent 2fb92da commit 25cad91
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 2 deletions.
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 }}
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

0 comments on commit 25cad91

Please sign in to comment.