Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Pre-flatpak updates
Browse files Browse the repository at this point in the history
  • Loading branch information
achhabra2 committed Apr 19, 2022
1 parent 1adfc04 commit 503be8e
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 104 deletions.
7 changes: 2 additions & 5 deletions build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@
# flatpak-builder flatpak app.riftshare.RiftShare.yaml
# flatpak-builder --user --install --force-clean flatpak app.riftshare.RiftShare.yaml
wails build

tar -czvf RiftShare-linux-amd64.tar.gz \
-C ./build/bin/ RiftShare \
-C ../linux/ app.riftshare.RiftShare.desktop \
app.riftshare.RiftShare.png
cd ..
tar -czvf riftshare-vendored.tar.gz riftshare
46 changes: 46 additions & 0 deletions build/linux/app.riftshare.RiftShare.appdata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>app.riftshare.RiftShare</id>

<name>RiftShare</name>
<summary>Easy, Secure, Free file sharing</summary>

<metadata_license>MIT</metadata_license>
<project_license>GPL-3.0-or-later</project_license>

<description>
<p>
Description
</p>
<p>
The purpose of this project is to enable everyone to be able to share files privately in real time, without the use of the major tech companies and cloud providers. Use RiftShare to send files to your friends and family, or even between computers at your house. It is shocking how over the years, sharing files is still more complicated than it needs to be. Look no further. No accounts, sign-ups, or tracking, just use a simple human-readable passphrase to securely transfer files. RiftShare is a front end to magic wormhole and is compatible with any other CLI or UI apps that use the same protocol.
</p>
<p>
Features
</p>
<p>
<em> Easy secure file transfers between computers both in the local network and through the internet </em> Supports transferring files or directories securely through the magic wormhole protocol <em> Compatible with all other apps using magic wormhole (magic-wormhole or wormhole-william CLI, wormhole-gui, etc.) </em> Automatic zipping and unzipping of multiple selected files to send at once <em> Full animations and progress bar for sending and receiving </em> Native OS File Selection * Open files in one click once received
</p>
</description>

<launchable type="desktop-id">app.riftshare.RiftShare.desktop</launchable>
<screenshots>
<screenshot type="default">
<image>https://raw.githubusercontent.com/achhabra2/riftshare/main/docs/screenshots/riftshare-send-1.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/achhabra2/riftshare/main/docs/screenshots/riftshare-receive-1.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/achhabra2/riftshare/main/docs/screenshots/riftshare-send-2.png</image>
</screenshot>
</screenshots>

<releases>
<release version="0.1.7" date="2022-04-19">
<description>
<p>Initial Flatpak Release</p>
</description>
</release>
</releases>
</component>
4 changes: 3 additions & 1 deletion build/linux/app.riftshare.RiftShare.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ Name=RiftShare
Terminal=false
Exec=
Type=Application
Icon=app.riftshare.RiftShare
Icon=app.riftshare.RiftShare
Categories=Network;Utility
Comment=Easy, Secure, Free File Sharing
38 changes: 13 additions & 25 deletions build/linux/app.riftshare.RiftShare.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
app-id: app.riftshare.RiftShare
runtime: org.gnome.Platform
runtime-version: '41'
runtime-version: '42'
sdk: org.gnome.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.golang//21.08
- org.freedesktop.Sdk.Extension.node16//21.08
- org.freedesktop.Sdk.Extension.golang
build-options:
append-path:
- /usr/lib/sdk/golang/bin
- /usr/lib/sdk/node16/bin
append-path: /usr/lib/sdk/golang/bin
env:
- GOROOT=/usr/lib/sdk/golang
- GOBIN=/app/bin
command: RiftShare
finish-args:
# Window Manager
Expand All @@ -21,26 +17,18 @@ finish-args:
- '--device=dri'
- '--share=network'
- '--filesystem=home'
- '--talk-name=org.freedesktop.Notifications'
modules:
- name: wails
sources:
- type: git
url: https://github.com/wailsapp/wails
commit: 053f2748d5f81615281ef40198a6781764d86ef0
buildsystem: simple
build-commands:
- cd wails/v2/cmd/wails
- go install

- name: RiftShare
- name: riftshare
sources:
- type: archive
url: "https://github.com/achhabra2/riftshare/releases/download/v0.1.7/RiftShare-linux-amd64.tar.gz"
sha256: e5ee5e7751ee8e39cbfccef399984d881c0034782f54d6a1594ea22ed47b0d38
strip-components: 0
url: "https://github.com/achhabra2/riftshare/releases/download/v0.1.7/riftshare-vendored.tar.gz"
sha256: 7723d02079a844e57adda3290607b032377ac55b36a260cfd9e33b7d8705bc38
strip-components: 1
buildsystem: simple
build-commands:
- wails build --clean -s
- install -Dm 755 build/bin/RiftShare /app/bin/RiftShare
- install -Dm 644 build/linux/app.riftshare.RiftShare.desktop /app/share/applications/app.riftshare.RiftShare.desktop
- install -Dm 644 build/linux/app.riftshare.RiftShare.png /app/share/icons/hicolor/512x512/apps/app.riftshare.RiftShare.png
- go build -tags desktop,production -ldflags "-w -s" -o RiftShare
- install -Dm755 RiftShare /app/bin/RiftShare
- install -Dm644 build/linux/app.riftshare.RiftShare.desktop /app/share/applications/app.riftshare.RiftShare.desktop
- install -Dm644 build/linux/app.riftshare.RiftShare.png /app/share/icons/hicolor/512x512/apps/app.riftshare.RiftShare.png
- install -Dm644 build/linux/app.riftshare.RiftShare.appdata.xml /app/share/metainfo/app.riftshare.RiftShare.appdata.xml
Loading

0 comments on commit 503be8e

Please sign in to comment.