From 3e2e322f207b6842132694f2c47de6f437e840e0 Mon Sep 17 00:00:00 2001 From: Erwan Leboucher Date: Wed, 12 Aug 2026 11:05:43 +0200 Subject: [PATCH] fix: package CEF releases without goreleaser --- packaging/licenses/CEF-LICENSE.txt | 29 +++++++++++++++++++++++++++++ scripts/cef/copy-libs.sh | 6 +++--- 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 packaging/licenses/CEF-LICENSE.txt diff --git a/packaging/licenses/CEF-LICENSE.txt b/packaging/licenses/CEF-LICENSE.txt new file mode 100644 index 000000000..b55d613db --- /dev/null +++ b/packaging/licenses/CEF-LICENSE.txt @@ -0,0 +1,29 @@ +// Copyright (c) 2008-2020 Marshall A. Greenblatt. Portions Copyright (c) +// 2006-2009 Google Inc. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the name Chromium Embedded +// Framework nor the names of its contributors may be used to endorse +// or promote products derived from this software without specific prior +// written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/scripts/cef/copy-libs.sh b/scripts/cef/copy-libs.sh index 3c5ca4bee..4e1fe150b 100755 --- a/scripts/cef/copy-libs.sh +++ b/scripts/cef/copy-libs.sh @@ -63,9 +63,9 @@ cp -f "$CEF_DIR"/*.so* "$DEST/" 2>/dev/null || true cp -f "$CEF_DIR"/chrome_crashpad_handler "$DEST/" 2>/dev/null || true cp -f "$CEF_DIR"/*.pak "$CEF_DIR"/*.dat "$CEF_DIR"/*.bin "$CEF_DIR"/*.json "$DEST/" 2>/dev/null || true -# CEF's BSD license must accompany binary redistributions. Keep its original -# text beside the runtime so every package format receives it automatically. -cp -f "$CEF_DIR/LICENSE.txt" "$DEST/CEF-LICENSE.txt" +# CEF's BSD license must accompany binary redistributions. The Rust crate's +# extracted runtime omits it, so package the upstream notice vendored here. +cp -f "$ROOT/packaging/licenses/CEF-LICENSE.txt" "$DEST/CEF-LICENSE.txt" # Strip debug symbols: CEF ships libcef.so unstripped (~1.3 GB → 241 MB). # Same approach as OutSystems cef.redist.linux and Spotify's desktop client.