mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
* Implement libmemory_security
* Cleanup and add script
* Remove duplicate build for flatpak
* Rename to process isolation
* Move to desktop native
* Undo changes in gitignore
* Remove after-pack changes
* Run cargo fmt
* Sort deps
* Attempt to fix windows build
* Update apps/desktop/desktop_native/process_isolation/Cargo.toml
Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
* Revert "Remove after-pack changes"
This reverts commit c441025587.
* Fix lib process isolation not being included in build
* Fix build
* Attempt to fix build
* Attempt to fix build
* Undo
* Fix library not being included
---------
Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
52 lines
1.7 KiB
YAML
52 lines
1.7 KiB
YAML
app-id: com.bitwarden.desktop
|
|
runtime: org.freedesktop.Platform
|
|
runtime-version: "24.08"
|
|
sdk: org.freedesktop.Sdk
|
|
base: org.electronjs.Electron2.BaseApp
|
|
base-version: "24.08"
|
|
command: bitwarden.sh
|
|
finish-args:
|
|
- --share=ipc
|
|
- --share=network
|
|
- --socket=wayland
|
|
# This should be fallback-x11, but on gnome/mutter, zwlr_data_control_manager_v1 is not implemented
|
|
# so we need to use x11 as a fallback to make copy paste work
|
|
- --socket=x11
|
|
- --device=dri
|
|
- --env=XDG_CURRENT_DESKTOP=Unity
|
|
- --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
|
|
- --talk-name=org.kde.StatusNotifierWatcher
|
|
- --talk-name=org.freedesktop.Notifications
|
|
- --talk-name=org.freedesktop.secrets
|
|
- --talk-name=com.canonical.AppMenu.Registrar
|
|
- --system-talk-name=org.freedesktop.PolicyKit1
|
|
# Lock on lockscreen
|
|
- --talk-name=org.gnome.ScreenSaver
|
|
- --talk-name=org.freedesktop.ScreenSaver
|
|
- --system-talk-name=org.freedesktop.login1
|
|
- --filesystem=xdg-download
|
|
- --device=all
|
|
modules:
|
|
- name: bitwarden-desktop
|
|
buildsystem: simple
|
|
build-commands:
|
|
- mkdir -p /app/bin
|
|
- mkdir -p /app/bin/Bitwarden/
|
|
- cp -r ./* /app/bin/
|
|
- install bitwarden.sh /app/bin/bitwarden.sh
|
|
sources:
|
|
- type: dir
|
|
only-arches: [x86_64]
|
|
path: ../dist/linux-unpacked
|
|
- type: dir
|
|
only-arches: [aarch64]
|
|
path: ../dist/linux-arm64-unpacked
|
|
- type: script
|
|
dest-filename: bitwarden.sh
|
|
commands:
|
|
- ulimit -c 0
|
|
- export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID"
|
|
- export ZYPAK_LD_PRELOAD="/app/bin/libprocess_isolation.so"
|
|
- export PROCESS_ISOLATION_LD_PRELOAD="/app/bin/libprocess_isolation.so"
|
|
- exec zypak-wrapper /app/bin/bitwarden-app "$@"
|