fix(snap): correct perl patch syntax

cx
This commit is contained in:
vicrodh committed 2026-02-05 02:23:35 -06:00
1 parent d548da318d
commit c5411b8ddf
1 file changed
+1 -1
+1 -1
View File
@@ -95,7 +95,7 @@ parts:
- alsa-utils
override-build: |
# Allow sandboxed builds to override GTK_USE_PORTAL.
perl -0pi -e 'if ($_.!~/var_os\\(\"GTK_USE_PORTAL\"\\)/) { s/std::env::set_var\\(\"GTK_USE_PORTAL\", \"1\"\\);/if std::env::var_os\\(\"GTK_USE_PORTAL\"\\).is_none() {\\n std::env::set_var(\"GTK_USE_PORTAL\", \"1\");\\n }/ }' src-tauri/src/main.rs
perl -0pi -e 'if ($_ !~ /var_os\\(\"GTK_USE_PORTAL\"\\)/) { s/std::env::set_var\\(\"GTK_USE_PORTAL\", \"1\"\\);/if std::env::var_os\\(\"GTK_USE_PORTAL\"\\).is_none() {\\n std::env::set_var(\"GTK_USE_PORTAL\", \"1\");\\n }/ }' src-tauri/src/main.rs
# Install Node.js for frontend build
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -