Skip to content

Commit

Permalink
Updated Snapcraft build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ransome1 committed Jan 7, 2025
1 parent 958b7b6 commit 378876a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
14 changes: 6 additions & 8 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sleek
base: core20
base: core24
version: "2.0.15-rc.1"
summary: todo.txt manager for Linux, free and open-source (FOSS)
description: |
Expand All @@ -8,7 +8,6 @@ description: |
All classic todo.txt attributes are supported and enhanced by additional features. Creating todos is straightforward, and tag-based filtering in tandem with highly customisable grouping and smart full-text search allow for rapid information retrieval. Completed todos can be hidden or archived into separate done.txt files. Easy integration with other todo.txt apps is facilitated by continuously scanning todo.txt files for changes.
sleek is available for Windows, MacOS and Linux, and in several languages.
grade: stable
confinement: strict
icon: ./assets/icons/512x512.png
Expand All @@ -28,7 +27,7 @@ apps:
PATH: "$SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH"
SNAP_DESKTOP_RUNTIME: $SNAP/gnome-platform
GTK_USE_PORTAL: '1'
extensions: [gnome-3-38]
extensions: [gnome]
plugs:
- desktop
- home
Expand All @@ -51,25 +50,24 @@ parts:
fi
node.yarn
node.yarn run dir
node.yarn make
mv $SNAPCRAFT_PART_BUILD/release/build/linux-* \
mv $SNAPCRAFT_PART_BUILD/out/sleek-* \
$SNAPCRAFT_PART_INSTALL/sleek
stage-packages:
- libnss3
cleanup:
after: [ sleek ]
plugin: nil
build-snaps: [ gnome-3-38-2004 ]
build-snaps: [ gnome ]
override-prime: |
cd sleek
ls -l
rm LICENSE.electron.txt
rm LICENSES.chromium.html
rm chrome-sandbox
ls -l
set -eux
for snap in "gnome-3-38-2004"; do # List all content-snaps you're using here
for snap in "gnome"; do # List all content-snaps you're using here
cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" "$SNAPCRAFT_PRIME/usr/{}" \;
done
for CRUFT in bug lintian man; do
Expand Down
3 changes: 0 additions & 3 deletions src/preload.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// See the Electron documentation for details on how to use preload scripts:
// https://www.electronjs.org/docs/latest/tutorial/process-model#preload-scripts

import { contextBridge, ipcRenderer } from 'electron';

contextBridge.exposeInMainWorld('api', {
Expand Down

0 comments on commit 378876a

Please sign in to comment.