Skip to content

Commit

Permalink
Linux updates
Browse files Browse the repository at this point in the history
  • Loading branch information
achhabra2 committed Apr 18, 2022
1 parent 6ab2793 commit 1adfc04
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 436 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -26,4 +26,6 @@ RiftShare.pkg
frontend/dist

build/linux/flatpak
build/linux/.flatpak-builder
build/linux/.flatpak-builder
vendor
app.riftshare.RiftShare.yaml.bak
2 changes: 1 addition & 1 deletion build/linux/app.riftshare.RiftShare.desktop
@@ -1,6 +1,6 @@
[Desktop Entry]
Name=RiftShare
Terminal=false
Exec=app.riftshare.RiftShare
Exec=
Type=Application
Icon=app.riftshare.RiftShare
34 changes: 27 additions & 7 deletions build/linux/app.riftshare.RiftShare.yaml
@@ -1,8 +1,18 @@
app-id: app.riftshare.RiftShare
runtime: org.gnome.Platform
runtime-version: '42'
runtime-version: '41'
sdk: org.gnome.Sdk
# command: RiftShare
sdk-extensions:
- org.freedesktop.Sdk.Extension.golang//21.08
- org.freedesktop.Sdk.Extension.node16//21.08
build-options:
append-path:
- /usr/lib/sdk/golang/bin
- /usr/lib/sdk/node16/bin
env:
- GOROOT=/usr/lib/sdk/golang
- GOBIN=/app/bin
command: RiftShare
finish-args:
# Window Manager
- '--share=ipc'
Expand All @@ -12,15 +22,25 @@ finish-args:
- '--share=network'
- '--filesystem=home'
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
sources:
- type: archive
url: "https://github.com/achhabra2/riftshare/releases/download/v0.1.7/RiftShare-linux-amd64.tar.gz"
sha256: 11676d67c69a4b487509f431f5f85c7b843df499971b022348bd8b514b40daf1
sha256: e5ee5e7751ee8e39cbfccef399984d881c0034782f54d6a1594ea22ed47b0d38
strip-components: 0
buildsystem: simple
build-commands:
- chmod +x RiftShare
- install -D RiftShare /app/bin/app.riftshare.RiftShare
- install -D app.riftshare.RiftShare.desktop /app/share/applications/app.riftshare.RiftShare.desktop
- install -D app.riftshare.RiftShare.png /app/share/icons/hicolor/512x512/apps/app.riftshare.RiftShare.png
- 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
1 change: 0 additions & 1 deletion frontend/wailsjs/runtime/ipcdev.js

This file was deleted.

8 changes: 8 additions & 0 deletions frontend/wailsjs/runtime/runtime.d.ts
Expand Up @@ -17,6 +17,8 @@ export interface runtime {

EventsOnce(eventName: string, callback: (data?: any) => void): void;

EventsOff(eventName: string): void;

LogTrace(message: string): void;

LogDebug(message: string): void;
Expand All @@ -31,6 +33,12 @@ export interface runtime {

WindowReload(): void;

WindowSetSystemDefaultTheme(): void;

WindowSetLightTheme(): void;

WindowSetDarkTheme(): void;

WindowCenter(): void;

WindowSetTitle(title: string): void;
Expand Down
2 changes: 1 addition & 1 deletion frontend/wailsjs/runtime/runtime.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1adfc04

Please sign in to comment.