#!/bin/bash -e # LICENSE BEGIN # This file is part of the SixtyFPS Project -- https://sixtyfps.io # Copyright (c) 2021 Olivier Goffart # Copyright (c) 2021 Simon Hausmann # # SPDX-License-Identifier: GPL-3.0-only # This file is also available under commercial licensing terms. # Please contact info@sixtyfps.io for more information. # LICENSE END if [ $# != 3 ]; then echo "usage: $0 path/to/target/binary_package path/to/binary/Qt qt_version" echo echo "This prepares the specified binary_package folder for distribution" echo "by adding the legal copyright and license notices." echo echo "All files will be copied/created under the 3rdparty-licenses folder" echo "along with an index.html" echo echo "(The path to Qt could be for example ~/Qt/ where the qt installer placed" echo " the binaries and sources under)" exit 1 fi target_path=$1/3rdparty-licenses qt_path=$2 qt_version=$3 mkdir -p $target_path cp -a `dirname $0`/../LICENSE.md $target_path cat > about.hbs <

This program is distributed under the terms outlined in LICENSE.md

.

Third Party Licenses

This page lists the licenses of the dependencies used by this program.

Overview of licenses:

    {{#each overview}}
  • {{name}} ({{count}})
  • {{/each}}

All license text:

Qt License attribution

This program also uses the Qt library, which is licensed under the LGPL v3

.

Qt may include additional third-party components: QtThirdPartySoftware_Listing.txt

EOT cat > about.toml << EOT accepted = [ "MIT", "Apache-2.0", "MPL-2.0", "Zlib", "BSD-2-Clause", "BSD-3-Clause", "CC0-1.0", "BSL-1.0", "ISC", "GPL-3.0", # That's only for SixtyFPS ] targets = [ "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc", "x86_64-apple-darwin", ] ignore-build-dependencies = true ignore-dev-dependencies = true EOT cargo about generate about.hbs -o $target_path/index.html cp sixtyfps_runtime/rendering_backends/qt/LICENSE.QT sixtyfps_runtime/rendering_backends/qt/QtThirdPartySoftware_Listing.txt $target_path/