Skip to content
Open
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
2 changes: 2 additions & 0 deletions flatpak/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build-dir
.flatpak-builder
13 changes: 13 additions & 0 deletions flatpak/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Flatpak packaging for Cyd

## Build and install

```sh
./flatpak/build-flatpak.sh
```

## Run

```sh
flatpak run social.cyd.Cyd
```
7 changes: 7 additions & 0 deletions flatpak/build-flatpak.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
set -e
cd "$(dirname "$0")/.."
npm install
CYD_ENV=prod npx electron-forge package
cd flatpak
flatpak-builder --user --install --force-clean build-dir social.cyd.Cyd.yml
3 changes: 3 additions & 0 deletions flatpak/cyd-wrapper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID"
exec zypak-wrapper /app/cyd/cyd "$@"
10 changes: 10 additions & 0 deletions flatpak/social.cyd.Cyd.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Name=Cyd
Comment=Backup, delete, and migrate your data from tech platforms
Exec=cyd %U
Icon=social.cyd.Cyd
Terminal=false
Type=Application
Categories=Utility;Network;
StartupWMClass=cyd
MimeType=x-scheme-handler/social.cyd.api;
19 changes: 19 additions & 0 deletions flatpak/social.cyd.Cyd.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>social.cyd.Cyd</id>
<name>Cyd</name>
<summary>Backup, delete, and migrate your data from tech platforms</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>LicenseRef-proprietary=https://cyd.social/terms/</project_license>
<description>
<p>Cyd lets you regain control of your data on tech platforms. Back up your data locally, delete tweets, likes, and DMs, and migrate your content to open platforms like Bluesky.</p>
<p>Cyd runs directly on your computer - your accounts and data stay private.</p>
</description>
<url type="homepage">https://cyd.social</url>
<url type="bugtracker">https://github.com/lockdown-systems/cyd/issues</url>
<developer id="social.cyd">
<name>Lockdown Systems Collective</name>
</developer>
<launchable type="desktop-id">social.cyd.Cyd.desktop</launchable>
<content_rating type="oars-1.1" />
</component>
38 changes: 38 additions & 0 deletions flatpak/social.cyd.Cyd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
app-id: social.cyd.Cyd
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '24.08'
command: cyd
finish-args:
- --share=ipc
- --share=network
- --socket=x11
- --socket=wayland
- --socket=pulseaudio
- --device=dri
- --filesystem=xdg-download
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.kde.StatusNotifierWatcher
- --env=ELECTRON_OZONE_PLATFORM_HINT=auto
modules:
- name: cyd
buildsystem: simple
sources:
- type: dir
path: ../out/Cyd-linux-x64
dest: cyd-archive
- type: file
path: social.cyd.Cyd.desktop
- type: file
path: social.cyd.Cyd.metainfo.xml
- type: file
path: cyd-wrapper.sh
build-commands:
- install -d /app/cyd
- cp -r cyd-archive/* /app/cyd/
- install -Dm755 cyd-wrapper.sh /app/bin/cyd
- install -Dm644 social.cyd.Cyd.desktop /app/share/applications/social.cyd.Cyd.desktop
- install -Dm644 social.cyd.Cyd.metainfo.xml /app/share/metainfo/social.cyd.Cyd.metainfo.xml
- install -Dm644 cyd-archive/resources/icon.png /app/share/icons/hicolor/512x512/apps/social.cyd.Cyd.png