mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-09-02 01:59:02 +00:00
[REUSE] is a specification that aims at making file copyright
information consistent, so that it can be both human and machine
readable. It basically requires that all files have a header containing
copyright and licensing information. When this isn't possible, like
when dealing with binary assets, generated files or embedded third-party
dependencies, it is permitted to insert copyright information in the
`.reuse/dep5` file.
Oh, and it also requires that all the licenses used in the project are
present in the `LICENSES` folder, that's why the diff is so huge.
This can be done automatically with `reuse download --all`.
The `reuse` tool also contains a handy subcommand that analyzes the
project and tells whether or not the project is (still) compliant,
`reuse lint`.
Following REUSE has a few advantages over the current approach:
- Copyright information is easy to access for users / downstream
- Files like `dist/license.md` do not need to exist anymore, as
`.reuse/dep5` is used instead
- `reuse lint` makes it easy to ensure that copyright information of
files like binary assets / images is always accurate and up to date
To add copyright information of files that didn't have it I looked up
who committed what and when, for each file. As yuzu contributors do not
have to sign a CLA or similar I couldn't assume that copyright ownership
was of the "yuzu Emulator Project", so I used the name and/or email of
the commit author instead.
[REUSE]: https://reuse.software
Follow-up to 01cf05bc75
50 lines
1.4 KiB
Bash
Executable File
50 lines
1.4 KiB
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
. .ci/scripts/common/pre-upload.sh
|
|
|
|
APPIMAGE_NAME="yuzu-${GITDATE}-${GITREV}.AppImage"
|
|
REV_NAME="yuzu-linux-${GITDATE}-${GITREV}"
|
|
ARCHIVE_NAME="${REV_NAME}.tar.xz"
|
|
COMPRESSION_FLAGS="-cJvf"
|
|
|
|
if [ "${RELEASE_NAME}" = "mainline" ]; then
|
|
DIR_NAME="${REV_NAME}"
|
|
else
|
|
DIR_NAME="${REV_NAME}_${RELEASE_NAME}"
|
|
fi
|
|
|
|
mkdir "$DIR_NAME"
|
|
|
|
cp build/bin/yuzu-cmd "$DIR_NAME"
|
|
cp build/bin/yuzu "$DIR_NAME"
|
|
|
|
# Build an AppImage
|
|
cd build
|
|
|
|
wget -nc https://github.com/yuzu-emu/ext-linux-bin/raw/main/appimage/appimagetool-x86_64.AppImage
|
|
chmod 755 appimagetool-x86_64.AppImage
|
|
|
|
# if FUSE is not available, then fallback to extract and run
|
|
if ! ./appimagetool-x86_64.AppImage --version; then
|
|
export APPIMAGE_EXTRACT_AND_RUN=1
|
|
fi
|
|
|
|
if [ "${RELEASE_NAME}" = "mainline" ]; then
|
|
# Generate update information if releasing to mainline
|
|
./appimagetool-x86_64.AppImage -u "gh-releases-zsync|yuzu-emu|yuzu-${RELEASE_NAME}|latest|yuzu-*.AppImage.zsync" AppDir "${APPIMAGE_NAME}"
|
|
else
|
|
./appimagetool-x86_64.AppImage AppDir "${APPIMAGE_NAME}"
|
|
fi
|
|
cd ..
|
|
|
|
# Copy the AppImage and update info to the artifacts directory and avoid compressing it
|
|
cp "build/${APPIMAGE_NAME}" "${ARTIFACTS_DIR}/"
|
|
if [ -f "build/${APPIMAGE_NAME}.zsync" ]; then
|
|
cp "build/${APPIMAGE_NAME}.zsync" "${ARTIFACTS_DIR}/"
|
|
fi
|
|
|
|
. .ci/scripts/common/post-upload.sh
|