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

Commit

Permalink
Add status message for decompression, fix linux appdata bug
Browse files Browse the repository at this point in the history
  • Loading branch information
achhabra2 committed Apr 21, 2022
1 parent 3426fae commit 9392440
Show file tree
Hide file tree
Showing 10 changed files with 501 additions and 13 deletions.
1 change: 1 addition & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ func (b *App) ReceiveFile(code string) {
// If zip received from another riftshare client, unzip archive
if filepath.Ext(b.receivedFile) == ".zip" && strings.Contains(b.receivedFile, "riftshare-") {
runtime.LogInfo(b.ctx, "Riftshare zip found, unzipping..")
runtime.EventsEmit(b.ctx, "receive:status", "decompressing files")
dir, err := unzipFile(b.receivedFile)
if err != nil {
runtime.LogError(b.ctx, "Error during unzip"+err.Error())
Expand Down
4 changes: 3 additions & 1 deletion build/linux/app.riftshare.RiftShare.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
<li> Compatible with all other apps using magic wormhole (magic-wormhole or wormhole-william CLI, wormhole-gui, etc.) </li>
<li> Automatic zipping and unzipping of multiple selected files to send at once </li>
<li> Full animations and progress bar for sending and receiving </li>
<li> Native OS File Selection * Open files in one click once received </li>
<li> Native OS File Selection </li>
<li> Open files in one click once received </li>
</ul>
</description>

Expand All @@ -39,6 +40,7 @@
</screenshots>

<url type="homepage">https://riftshare.app</url>
<url type="issues">https://github.com/achhabra2/riftshare/issues</url>
<content_rating type="oars-1.1" />

<releases>
Expand Down
2 changes: 1 addition & 1 deletion frontend/dist/bundle.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion frontend/wailsjs/go/bindings.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import * as models from './models';

export interface go {
"main": {
"App": {
Expand All @@ -8,7 +10,7 @@ export interface go {
GetLogPath():Promise<string>
GetReceivedFile():Promise<string>
GetSelectedFiles():Promise<Array<string>>
GetUserPrefs():Promise<UserSettings>
GetUserPrefs():Promise<models.UserSettings>
OpenDirectoryDialog():Promise<Array<string>|Error>
OpenFile(arg1:string):Promise<void>
OpenFilesDialog():Promise<Array<string>|Error>
Expand Down
2 changes: 1 addition & 1 deletion frontend/wailsjs/go/bindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const go = {
},
/**
* GetUserPrefs
* @returns {Promise<UserSettings>} - Go Type: settings.UserSettings
* @returns {Promise<models.UserSettings>} - Go Type: settings.UserSettings
*/
"GetUserPrefs": () => {
return window.go.main.App.GetUserPrefs();
Expand Down
1 change: 1 addition & 0 deletions frontend/wailsjs/runtime/ipcdev.js

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

8 changes: 0 additions & 8 deletions frontend/wailsjs/runtime/runtime.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ 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 @@ -33,12 +31,6 @@ 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.

Loading

0 comments on commit 9392440

Please sign in to comment.