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

Commit

Permalink
Preliminary Linux Support
Browse files Browse the repository at this point in the history
  • Loading branch information
achhabra2 committed Apr 16, 2022
1 parent fd50cd7 commit b3cb2c8
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ microsoft.system.package.metadata
RiftShare.pkg

# Exclude Dist Directory
frontend/dist
frontend/dist

build/linux/flatpak
build/linux/.flatpak-builder
3 changes: 3 additions & 0 deletions build-linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! bin/bash
flatpak-builder flatpak app.riftshare.RiftShare.yaml
flatpak-builder --user --install --force-clean flatpak app.riftshare.RiftShare.yaml
6 changes: 6 additions & 0 deletions build/linux/app.riftshare.RiftShare.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Desktop Entry]
Name=RiftShare
Terminal=false
Exec=app.riftshare.RiftShare
Type=Application
Icon=app.riftshare.RiftShare
Binary file added build/linux/app.riftshare.RiftShare.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions build/linux/app.riftshare.RiftShare.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
app-id: app.riftshare.RiftShare
runtime: org.gnome.Platform
runtime-version: '41'
sdk: org.gnome.Sdk
# command: RiftShare
finish-args:
# Window Manager
- '--share=ipc'
- '--socket=fallback-x11'
- '--socket=wayland'
- '--device=dri'
- '--share=network'
- '--filesystem=home'
modules:
- name: RiftShare
#
# Just install the binary from the local filesystem.
#
sources:
- type: dir
path: ..
buildsystem: simple
build-commands:
- chmod +x ./bin/RiftShare
- install -D ./bin/RiftShare /app/bin/app.riftshare.RiftShare
- install -D ./linux/app.riftshare.RiftShare.desktop /app/share/applications/app.riftshare.RiftShare.desktop
- install -D ./linux/app.riftshare.RiftShare.png /app/share/icons/hicolor/512x512/apps/app.riftshare.RiftShare.png

0 comments on commit b3cb2c8

Please sign in to comment.