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

Wine update to 8.11, new app Wine (x64), add ARM64 suport to Notepad++ #2341

Merged
merged 15 commits into from
Jun 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions apps/Notepad ++/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash

version=8.5.3

#determine filename of download
if [ $arch == 32 ];then
filename="https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v${version}/npp.${version}.portable.zip"
elif [ $arch == 64 ];then
filename="https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v${version}/npp.${version}.portable.x64.zip"
fi

#Installing wine
if [ $arch == 32 ];then
"$DIRECTORY/manage" install-if-not-installed 'Wine (x86)' || error 'Failed to install wine'
elif [ $arch == 64 ];then
"$DIRECTORY/manage" install-if-not-installed 'Wine (x64)' || error 'Failed to install wine'
fi
#Removing deprecated filepaths
rm -rf ~/npp.zip ~/Notepad++
#Downloading npp files
wget "$filename" -O /tmp/npp.zip || error 'Failed to download npp files'
#Extracting npp files
mkdir -p ~/.local/share/applications
unzip /tmp/npp.zip -d ~/.local/share/applications/Notepad++ || error 'Failed to extract npp archive'
#Removing npp archive
rm /tmp/npp.zip
#Creating Desktop Entry
echo "[Desktop Entry]
Name=Notepad++
Comment=Notepad++ is a free source code editor and Notepad replacement that supports several languages.
Exec=wine $HOME/.local/share/applications/Notepad++/notepad++.exe
Icon=$(dirname "$0")/icon-64.png
Terminal=false
StartupNotify=true
Type=Application
Categories=Utility;" > ~/.local/share/applications/notepad++.desktop || error 'Failed to create menu button!'
28 changes: 0 additions & 28 deletions apps/Notepad ++/install-32

This file was deleted.

5 changes: 3 additions & 2 deletions apps/Notepad ++/uninstall
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

purge_packages || exit 1
#Removing Downlaoded Files
#removing deprecated files
rm -rf ~/Notepad++
rm -f ~/.local/share/applications/notepad++.desktop
#removing program files
rm -rf ~/.local/share/applications/notepad++.desktop ~/.local/share/applications/Notepad++
3 changes: 3 additions & 0 deletions apps/Wine (x64)/credits
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Wine Developers: https://wiki.winehq.org/Who%27s_Who
Box64 Developer: @ptitSeb on GitHub
Script Writer and Packager: @theofficialgman and other pi-apps contributors on GitHub
11 changes: 11 additions & 0 deletions apps/Wine (x64)/description
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Run x86 and x64 Windows apps with a box64-emulated version x86/x64 wine-8.11 (WOW64 mode enabled).
To run: wine path/to/file.exe
To configure wine: go to 'Wine configuration' in main menu or type in terminal: wine winecfg
Not all Windows applications will work under Wine. It's a good idea to check online if your program can run, or if something can be tweaked to make it work.

Note: x86 32bit applications use the new Wine WOW64 mode. The WOW64 mode allows for running x86 Windows applications on x86_64 without any x86 Linux userspace.
Note: This mode is experimental in Wine and Box64 support for x86 code still need some work. However, many applications already work.

Note: the applications installed with wine will appear under the wine category in the main menu, and they will stay there even after uninstalling wine.

Need support with running a game or app with wine and box64? Ask it on the Pi Labs Discord: https://discord.gg/JKNQXprqUd
Binary file added apps/Wine (x64)/icon-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/Wine (x64)/icon-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading