bottles: 51.15 -> 51.17 (#365397)

authored by

Austin Horstman and committed by
GitHub
37626be7 6399d483

+222 -14
+32 -13
pkgs/by-name/bo/bottles-unwrapped/package.nix
··· 24 24 mangohud, 25 25 vkbasalt-cli, 26 26 vmtouch, 27 + libportal, 27 28 nix-update-script, 29 + removeWarningPopup ? false, # Final reminder to report any issues on nixpkgs' bugtracker 28 30 }: 29 31 30 32 python3Packages.buildPythonApplication rec { 31 33 pname = "bottles-unwrapped"; 32 - version = "51.15"; 34 + version = "51.17"; 33 35 34 36 src = fetchFromGitHub { 35 37 owner = "bottlesdevs"; 36 38 repo = "bottles"; 37 - rev = "refs/tags/${version}"; 38 - hash = "sha256-HjGAeIh9s7xWBy35Oj66tCtgKCd/DpHg1sMPsdjWKDs="; 39 + tag = version; 40 + hash = "sha256-m4ATWpAZxIBp1X0cNeyNGmt6aIBo/cHH+DpOMkLia0E="; 39 41 }; 40 42 41 - patches = [ ./vulkan_icd.patch ]; 43 + patches = 44 + [ 45 + ./vulkan_icd.patch 46 + ./redirect-bugtracker.patch 47 + ./remove-flatpak-check.patch 48 + ./remove-core-tab.patch 49 + ] 50 + ++ ( 51 + if removeWarningPopup then 52 + [ ./remove-unsupported-warning.patch ] 53 + else 54 + [ 55 + ./warn-unsupported.patch 56 + ] 57 + ); 42 58 43 59 # https://github.com/bottlesdevs/Bottles/wiki/Packaging 44 60 nativeBuildInputs = [ ··· 57 73 gtk4 58 74 gtksourceview5 59 75 libadwaita 76 + libportal 60 77 ]; 61 78 62 79 propagatedBuildInputs = 63 80 with python3Packages; 64 81 [ 65 - pathvalidate 66 - pycurl 67 82 pyyaml 83 + pycurl 84 + chardet 68 85 requests 69 - pygobject3 86 + markdown 87 + icoextract 70 88 patool 71 - markdown 89 + pathvalidate 72 90 fvs 73 - pefile 91 + orjson 92 + pycairo 93 + pygobject3 94 + charset-normalizer 95 + idna 74 96 urllib3 75 - chardet 76 97 certifi 77 - idna 78 - orjson 79 - icoextract 98 + pefile 80 99 ] 81 100 ++ [ 82 101 cabextract
+13
pkgs/by-name/bo/bottles-unwrapped/redirect-bugtracker.patch
··· 1 + diff --git a/data/com.usebottles.bottles.metainfo.xml.in.in b/data/com.usebottles.bottles.metainfo.xml.in.in 2 + index bdda5c6e..9292df50 100644 3 + --- a/data/com.usebottles.bottles.metainfo.xml.in.in 4 + +++ b/data/com.usebottles.bottles.metainfo.xml.in.in 5 + @@ -52,7 +52,7 @@ 6 + <translation type="gettext">@APP_ID@</translation> 7 + <content_rating type="oars-1.1"/> 8 + <url type="homepage">https://usebottles.com</url> 9 + - <url type="bugtracker">https://github.com/bottlesdevs/Bottles/issues</url> 10 + + <url type="bugtracker">https://github.com/NixOS/nixpkgs/issues</url> 11 + <url type="help">https://docs.usebottles.com</url> 12 + <url type="donation">https://usebottles.com/funding</url> 13 + <url type="translate">https://hosted.weblate.org/engage/bottles</url>
+76
pkgs/by-name/bo/bottles-unwrapped/remove-core-tab.patch
··· 1 + diff --git a/bottles/frontend/ui/preferences.blp b/bottles/frontend/ui/preferences.blp 2 + index 9dd12a16..c1fcf649 100644 3 + --- a/bottles/frontend/ui/preferences.blp 4 + +++ b/bottles/frontend/ui/preferences.blp 5 + @@ -284,20 +284,6 @@ template $PreferencesWindow: Adw.PreferencesWindow { 6 + } 7 + } 8 + 9 + - Adw.PreferencesPage pref_core { 10 + - icon-name: "application-x-addon-symbolic"; 11 + - title: _("Core"); 12 + - visible: false; 13 + - 14 + - Adw.PreferencesGroup list_runtimes { 15 + - title: _("Runtime"); 16 + - } 17 + - 18 + - Adw.PreferencesGroup list_winebridge { 19 + - title: _("WineBridge"); 20 + - } 21 + - } 22 + - 23 + Adw.PreferencesPage { 24 + icon-name: "applications-science-symbolic"; 25 + title: _("Experiments"); 26 + diff --git a/bottles/frontend/views/preferences.py b/bottles/frontend/views/preferences.py 27 + index ce7ec958..f46c6e5b 100644 28 + --- a/bottles/frontend/views/preferences.py 29 + +++ b/bottles/frontend/views/preferences.py 30 + @@ -53,8 +53,6 @@ class PreferencesWindow(Adw.PreferencesWindow): 31 + switch_steam_programs = Gtk.Template.Child() 32 + switch_epic_games = Gtk.Template.Child() 33 + switch_ubisoft_connect = Gtk.Template.Child() 34 + - list_winebridge = Gtk.Template.Child() 35 + - list_runtimes = Gtk.Template.Child() 36 + list_runners = Gtk.Template.Child() 37 + list_dxvk = Gtk.Template.Child() 38 + list_vkd3d = Gtk.Template.Child() 39 + @@ -66,7 +64,6 @@ class PreferencesWindow(Adw.PreferencesWindow): 40 + btn_bottles_path_reset = Gtk.Template.Child() 41 + label_bottles_path = Gtk.Template.Child() 42 + btn_steam_proton_doc = Gtk.Template.Child() 43 + - pref_core = Gtk.Template.Child() 44 + 45 + # endregion 46 + 47 + @@ -170,10 +167,6 @@ class PreferencesWindow(Adw.PreferencesWindow): 48 + self.installers_stack.set_visible_child_name("installers_offline") 49 + self.dlls_stack.set_visible_child_name("dlls_offline") 50 + 51 + - # populate components lists 52 + - self.populate_runtimes_list() 53 + - self.populate_winebridge_list() 54 + - 55 + RunAsync(self.ui_update) 56 + 57 + # connect signals 58 + @@ -319,18 +312,6 @@ class PreferencesWindow(Adw.PreferencesWindow): 59 + list_component.add(_entry) 60 + self.__registry.append(_entry) 61 + 62 + - def populate_runtimes_list(self): 63 + - for runtime in self.manager.supported_runtimes.items(): 64 + - self.list_runtimes.add( 65 + - ComponentEntry(self.window, runtime, "runtime", is_upgradable=True) 66 + - ) 67 + - 68 + - def populate_winebridge_list(self): 69 + - for bridge in self.manager.supported_winebridge.items(): 70 + - self.list_winebridge.add( 71 + - ComponentEntry(self.window, bridge, "winebridge", is_upgradable=True) 72 + - ) 73 + - 74 + def populate_dxvk_list(self): 75 + self.__populate_component_list( 76 + "dxvk", self.manager.supported_dxvk, self.list_dxvk
+17
pkgs/by-name/bo/bottles-unwrapped/remove-flatpak-check.patch
··· 1 + diff --git a/bottles/frontend/meson.build b/bottles/frontend/meson.build 2 + index 6ff7c011..c26ea0b9 100644 3 + --- a/bottles/frontend/meson.build 4 + +++ b/bottles/frontend/meson.build 5 + @@ -23,12 +23,6 @@ params_file = configure_file( 6 + configuration: conf 7 + ) 8 + 9 + -fs = import('fs') 10 + - 11 + -if not fs.is_file('/' + '.flatpak-info') 12 + - error('file does not exist') 13 + -endif 14 + - 15 + bottles_sources = [ 16 + '__init__.py', 17 + 'main.py',
+40
pkgs/by-name/bo/bottles-unwrapped/remove-unsupported-warning.patch
··· 1 + diff --git a/bottles/frontend/windows/main_window.py b/bottles/frontend/windows/main_window.py 2 + index 79bf0d72..e37ca43e 100644 3 + --- a/bottles/frontend/windows/main_window.py 4 + index 79bf0d72..e37ca43e 100644 5 + --- a/bottles/frontend/windows/main_window.py 6 + +++ b/bottles/frontend/windows/main_window.py 7 + @@ -104,29 +104,15 @@ class MainWindow(Adw.ApplicationWindow): 8 + 9 + def response(dialog, response, *args): 10 + if response == "close": 11 + - quit(1) 12 + + return 13 + 14 + - body = _( 15 + - "Bottles is only supported within a sandboxed environment. Official sources of Bottles are available at" 16 + - ) 17 + - download_url = "usebottles.com/download" 18 + - 19 + - error_dialog = Adw.AlertDialog.new( 20 + - _("Unsupported Environment"), 21 + - f"{body} <a href='https://{download_url}' title='https://{download_url}'>{download_url}.</a>", 22 + - ) 23 + - 24 + - error_dialog.add_response("close", _("Close")) 25 + - error_dialog.set_body_use_markup(True) 26 + - error_dialog.connect("response", response) 27 + - error_dialog.present(self) 28 + - logging.error( 29 + + logging.warn( 30 + _( 31 + "Bottles is only supported within a sandboxed format. Official sources of Bottles are available at:" 32 + ) 33 + ) 34 + - logging.error("https://usebottles.com/download/") 35 + - return 36 + + logging.warn("https://usebottles.com/download/") 37 + + logging.warn("Please report any issues at: https://github.com/NixOS/nixpkgs/issues") 38 + 39 + # Loading view 40 + self.page_loading = LoadingView()
+42
pkgs/by-name/bo/bottles-unwrapped/warn-unsupported.patch
··· 1 + diff --git a/bottles/frontend/windows/main_window.py b/bottles/frontend/windows/main_window.py 2 + index 79bf0d72..e3a15cb5 100644 3 + --- a/bottles/frontend/windows/main_window.py 4 + +++ b/bottles/frontend/windows/main_window.py 5 + @@ -104,29 +104,29 @@ class MainWindow(Adw.ApplicationWindow): 6 + 7 + def response(dialog, response, *args): 8 + if response == "close": 9 + - quit(1) 10 + + return 11 + 12 + body = _( 13 + - "Bottles is only supported within a sandboxed environment. Official sources of Bottles are available at" 14 + + "Bottles is only supported within a sandboxed environment. Please report any issues at:" 15 + ) 16 + - download_url = "usebottles.com/download" 17 + + bugtracker_url = "github.com/NixOS/nixpkgs/issues" 18 + 19 + error_dialog = Adw.AlertDialog.new( 20 + _("Unsupported Environment"), 21 + - f"{body} <a href='https://{download_url}' title='https://{download_url}'>{download_url}.</a>", 22 + + f"{body} <a href='https://{bugtracker_url}' title='https://{bugtracker_url}'>{bugtracker_url}.</a>", 23 + ) 24 + 25 + - error_dialog.add_response("close", _("Close")) 26 + + error_dialog.add_response("close", _("Understood")) 27 + error_dialog.set_body_use_markup(True) 28 + error_dialog.connect("response", response) 29 + error_dialog.present(self) 30 + - logging.error( 31 + + logging.warn( 32 + _( 33 + "Bottles is only supported within a sandboxed format. Official sources of Bottles are available at:" 34 + ) 35 + ) 36 + - logging.error("https://usebottles.com/download/") 37 + - return 38 + + logging.warn("https://usebottles.com/download/") 39 + + logging.warn("Please report any issues at: https://github.com/NixOS/nixpkgs/issues") 40 + 41 + # Loading view 42 + self.page_loading = LoadingView()
+2 -1
pkgs/by-name/bo/bottles/package.nix
··· 4 4 bottles-unwrapped, 5 5 extraPkgs ? pkgs: [ ], 6 6 extraLibraries ? pkgs: [ ], 7 + removeWarningPopup ? false, 7 8 }: 8 9 9 10 let ··· 16 17 pkgs: 17 18 with pkgs; 18 19 [ 19 - bottles-unwrapped 20 + (bottles-unwrapped.override { inherit removeWarningPopup; }) 20 21 # This only allows to enable the toggle, vkBasalt won't work if not installed with environment.systemPackages (or nix-env) 21 22 # See https://github.com/bottlesdevs/Bottles/issues/2401 22 23 vkbasalt