-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuneLite #489
RuneLite #489
Conversation
You have to resort to hacks if it makes single files in |
@@ -0,0 +1,9 @@ | |||
[Desktop Entry] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have data files but never install them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, same thing with the appdata file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was fixed.
net.runelite.RuneLite.json
Outdated
"type": "script", | ||
"dest-filename": "runelite", | ||
"commands": [ | ||
"ls -R /app | grep jagex", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this good for? Seems to be just a check if the directory exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh. I forgot to remove that.
net.runelite.RuneLite.json
Outdated
"--socket=wayland", | ||
"--socket=pulseaudio", | ||
"--env=JAVA_HOME=/app/jre", | ||
"--persist=~" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if this is actually used. The RuneLite updater seems to be downloading all the game files every time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(You can make multiple --persist
options, for example --persist=.foo, --persist=.bar
will make the ~/.foo and ~/.bar files/directories persistent.)
diff --git a/net.runelite.RuneLite.desktop b/net.runelite.RuneLite.desktop index 89d5cc5..511562c 100644 --- a/net.runelite.RuneLite.desktop +++ b/net.runelite.RuneLite.desktop @@ -6,4 +6,4 @@ Comment=RuneLite is a free, open-source and super fast client for Old School Run Keywords=games;runescape;osrs; Exec=runelite Icon=net.runelite.RuneLite -Categories=Game;MMO; +Categories=Game;RolePlaying; diff --git a/net.runelite.RuneLite.json b/net.runelite.RuneLite.json index 089da41..bb48bd7 100644 --- a/net.runelite.RuneLite.json +++ b/net.runelite.RuneLite.json @@ -30,14 +30,16 @@ "buildsystem": "simple", "build-commands": [ "install -D runelite /app/bin/runelite", - "install -D RuneLite.jar /app/share/RuneLite.jar" + "install -D RuneLite.jar /app/share/RuneLite.jar", + "install -Dm644 net.runelite.RuneLite.png /app/share/icons/hicolor/128x128/apps/net.runelite.RuneLite.png", + "install -Dm644 net.runelite.RuneLite.desktop /app/share/applications/net.runelite.RuneLite.desktop", + "install -Dm644 net.runelite.RuneLite.appdata.xml /app/share/appdata/net.runelite.RuneLite.appdata.xml" ], "sources": [ { "type": "script", "dest-filename": "runelite", "commands": [ - "ls -R /app | grep jagex", "exec $JAVA_HOME/bin/java -jar /app/share/RuneLite.jar" ] }, @@ -45,6 +47,18 @@ "type": "file", "url": "https://github.com/runelite/launcher/releases/download/1.6.0/RuneLite.jar", "sha256": "fdcfdd51b033815c4f45025c315175b8a20cc080b65a8b76aee5519b39e85d60" + }, + { + "type": "file", + "path": "net.runelite.RuneLite.png" + }, + { + "type": "file", + "path": "net.runelite.RuneLite.desktop" + }, + { + "type": "file", + "path": "net.runelite.RuneLite.appdata.xml" } ] } Here's a fix to make the desktop/appdata files working (and also to remove the unnecessary check). Persistent RuneLite files are still an issue; if they have always the same name, you can use |
@@ -0,0 +1,23 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, please add OARS metadata to the appdata file.
@AsciiWolf Thank you for your patch! And the files do not change name as far as I can tell, but when I tried using |
@rushsteve1 Ah, weird, I thought that |
net.runelite.RuneLite.desktop
Outdated
Keywords=games;runescape;osrs; | ||
Exec=runelite | ||
Icon=net.runelite.RuneLite | ||
Categories=Game;MMO; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be Game;RolePlaying;
. It is fixed in my patch.
- Made another attempt at persistence. Doesn't seem to work. - Added OARS.
Ok last commit merged @AsciiWolf's patch and added OARS data. I also tried setting a |
<release version="1.6.0" date="2018-7-7"></release> | ||
</releases> | ||
<update_contact>rushsteve1_at_teknik.io</update_contact> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary empty line. :-)
@rushsteve1: It's a pity that the persist workaround didn't work. :-/ Maybe @alexlarsson will know more about this? |
Got it to at least persist the downloaded files
I figured out how to persist the downloaded data and the jagexcache which are both folders. The downloaded data was the big thing. |
bot, build net.runelite.RuneLite |
I can confirm that the issue with persistent files is now fixed. Game is fully playable, however, there are still some minor issues:
|
In response to @AsciiWolf's concerns:
|
|
@TingPing It looks like that all the issues (except the password recover one and the other two that are not related to the Flatpak) were fixed. |
The Password recover issue is the same as when you click "Create Account" it wont open the browser. I have no idea what would cause that. |
@rushsteve1 I tried to debug this issue, but no luck. I have however found some other errors, but none of them seems to be fatal. After RuneLite is started, this appears on stdout:
There are also some |
I assume that the driver issues are attempts at loading some form of hardware acceleration. While that would be nice to have I know nothing about Flatpak and drivers, and to be blunt this is a browser game from 2007. The performance requirements are minimal. The |
@rushsteve1 I don't see any problem in the json file. But I found out that RuneLite devs itself recommend disabling 3D acceleration in some cases and RuneLite probably works fine without 3D acceleration. |
Anyway, besides the browser issue and the glitched UI that is an upstream issue, it seems to work fine so this PR can probably be merged. ;-) |
@TingPing @AsciiWolf Is there anything else that needs to be done before this is merged? |
Repository has been created: https://github.com/flathub/net.runelite.RuneLite |
RuneLite OSRS client.
I was having some trouble setting up some persistent files. RuneLite automatically puts 2 files and a folder in the user's home folder which I wanted to avoid doing, but I cannot figure out how to make them persistent in the Flatpak. Some help on this would be greatly appreciated.