Skip to content
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

PlayOnLinux AppImage #2

Open
probonopd opened this issue Mar 7, 2020 · 14 comments
Open

PlayOnLinux AppImage #2

probonopd opened this issue Mar 7, 2020 · 14 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@probonopd
Copy link

probonopd commented Mar 7, 2020

Do you think you could make a PlayOnLinux AppImage, including WINE? I am sure it would be appreciated by many users.

@ferion11
Copy link
Owner

ferion11 commented Mar 7, 2020

When you have faith, everything is possible.
That said, it isn't my priority now. I don't feel like gaming anymore.
For me, this Appimage is just one alternative to the other Wine Appimage. My main focus with Wine is to run better the LogosBible. The normal Wine and Wine-staging v5.x is causing some black boxes on LogosBible display, so I have made this Proton Wine Appimage to be one alternative if I need to change.

@probonopd
Copy link
Author

Actually, I am also not that interested in games but more in applications. Keep up your great work.

@ferion11
Copy link
Owner

ferion11 commented Mar 7, 2020

Thanks

@ferion11 ferion11 added enhancement New feature or request question Further information is requested labels Mar 9, 2020
@ferion11
Copy link
Owner

Looking at this issue again, PlayOnLinux already distributes standalone versions now:
From: https://www.playonlinux.com/en/news.html
Linux standalone .tar.gz: http://repository.playonlinux.com/PlayOnLinux/5.0-alpha-2/Phoenicis_5.0-alpha-2-amd64.tar.gz
Linux standalone .deb: http://repository.playonlinux.com/PlayOnLinux/5.0-alpha-2/Phoenicis_5.0-alpha-2-amd64.deb

Then for one AppImage we would need to just pack it, but the new issue would be to change the PlayOnLinux code to support wine-AppImage too.
I believe it would be an interesting feature, not only on PlayOnLinux, but Steam, Lutris and others supporting the add of wine-AppImages (because it would take up much less disk space, and there are many users of no-multilib systems too).
Maybe @qparis for the PlayOnLinux and @strycore for the lutris, on the future, would consider adding this feature too. Even ValveSoftware would be interested, as they almost abandoned support for the Ubuntu because of the consideration of dropping 32-bit packages.

@probonopd
Copy link
Author

Maybe an AppImage build could even be added to https://github.com/PhoenicisOrg/phoenicis-winebuild? Would you be available to help?

@ferion11
Copy link
Owner

Maybe an AppImage build could even be added to https://github.com/PhoenicisOrg/phoenicis-winebuild? Would you be available to help?

In fact I would like to do just that, but adding one extra patch to fix the username (Wine always change the Windows username getting it from the linux user that call it), so that I can use the wine bottle more easily on portable versions of LogosBible. I'm just waiting for them to finish this pull request: PhoenicisOrg/phoenicis-winebuild#126

@qparis
Copy link

qparis commented Jul 31, 2020

Hi,

I have merged the merge request PhoenicisOrg/phoenicis-winebuild#126

Feel fee to ask if you need any support to extend phoenicis-winebuild

@ferion11
Copy link
Owner

Hi,

I have merged the merge request PhoenicisOrg/phoenicis-winebuild#126

Feel fee to ask if you need any support to extend phoenicis-winebuild

Thanks. Then I will start to play with the code :)

@probonopd
Copy link
Author

Hi @qparis are you familiar with the concept of AppImage? What do you think, would you be interested in adding an AppImage build to phoenicis-winebuild?

There are already several WINE AppImage builds out there, but having an official PlayOnLinux AppImage build would no doubt be beneficial.

Existing WINE AppImage projects include:

  • wine32-deploy - Creates AppImages for 32-bit Windows applications that can run on 64-bit Linux systems without multilib installed
  • win32-appimage - WINE-based AppImage creator for Windows applications
  • AppImage For WINE - WINE-based AppImages and LD_PRELOAD based patches to launch WINE from AppImages

Let me know if you have any AppImage-related questions, I know it pretty intimately ;-)

@qparis
Copy link

qparis commented Aug 1, 2020

Hi!

Indeed it would be interesting to support several packagers. Phoenicis wine build could automatically build any version to an app image format. What do we need to know to create a wine app image from a source root?

Concerning POL itself, we already support flatpack in our latest version so I see no reason why we could not support app image.

@ferion11
Copy link
Owner

ferion11 commented Aug 1, 2020

Hi!

Indeed it would be interesting to support several packagers. Phoenicis wine build could automatically build any version to an app image format. What do we need to know to create a wine app image from a source root?

Concerning POL itself, we already support flatpack in our latest version so I see no reason why we could not support app image.

That's good!
It's a simplified view that doesn't do the technology justice, but you can see AppImage as a linux tar.gz executable, requiring no installation or unpacking on disk. On the case of wine, we just need to create links for the executable inside, like "wine" or "wineserver" pointing to the executable AppImage file itself.

My project:
https://github.com/ferion11/Wine_Appimage
Create one ArchLinux docker, download one PlayOnLinux-wine-staging-linux-x86, download the ArchLinux packages needed, and make the AppImage (having only around 300MB) using this small script:
https://github.com/ferion11/Wine_Appimage_dev/blob/master/deployscript/archlinux-wine-deploy.sh

The script that run the AppImage is the main thing:
https://github.com/ferion11/Wine_Appimage_dev/blob/master/AppRun
Hackerl from https://github.com/Hackerl/Wine_Appimage created the hooks source that we need to load the wine:
https://github.com/Hackerl/Wine_Appimage/tree/master/src

So now we have AppImages (like https://github.com/ferion11/Wine_Appimage/releases) that can run wine32 on no-multilib linux distributions and installation.

Using the same technique I made one PCSX2 (that only have 32bits and need multilib) AppImage that can run on pure 64bit, no-multilib, linux distributions (having only around 150MB): https://github.com/ferion11/PCSX2_Appimage/releases

@probonopd
Copy link
Author

probonopd commented Aug 1, 2020

Also see my notes at https://github.com/probonopd/libhookexecv, and my proof-of-concept at https://github.com/probonopd/libhookexecv/releases/tag/continuous - e.g., the https://github.com/probonopd/libhookexecv/releases/download/continuous/NotepadPlusPlus-7.7.1-x86_64.AppImage which contains both the application and WINE fully self-contained so that it will run on a 64-bit Linux system without multilib... in an AppImage that is just 27.4 MB

@probonopd
Copy link
Author

probonopd commented Aug 1, 2020

@qparis great to hear! 👍 I am happy to support the effort in any possible way.

What do we need to know to create a wine app image from a source root?

Shall we discuss this here or would you prefer to discuss that in a ticket over at https://github.com/PhoenicisOrg/phoenicis?

@qparis
Copy link

qparis commented Aug 1, 2020

Depends on what you want to do:

  • If the goal is to package standalone w32 apps, phonics is probably the place to be
  • If the goal is to package standalone wine binaries, the best place is phoenicis-winebuild

Feel free to open a ticket :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants