From 8c7ec2316f823d6d49b8a360d0ca24e9d747a865 Mon Sep 17 00:00:00 2001 From: "Oleg \"OSA413\" Sokolov" Date: Sun, 25 Aug 2024 22:20:38 +0500 Subject: [PATCH] I hope I included all licenses that is possible to get from the docs --- .github/workflows/main.yml | 2 +- LICENSE | 2 +- pack.sh | 31 +++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a11c61f..f083084 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,7 +40,7 @@ jobs: run: bash update_dependencies.sh - name: Build Rust - run: cargo build + run: cargo build --release - name: Build .Net run: bash build.sh diff --git a/LICENSE b/LICENSE index 1a9a4eb..52ae3be 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018-2022 Oleg "OSA413" Sokolov +Copyright (c) 2018-2024 Oleg "OSA413" Sokolov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/pack.sh b/pack.sh index 98225a7..f3eae4a 100644 --- a/pack.sh +++ b/pack.sh @@ -46,7 +46,38 @@ done # Rust cargo install copydeps +cp ./target/release/ManagerLauncher.exe ./dist/Sonic4ModLoader/ModManager.exe +copydeps --search-dir C:/gtk-build/gtk/x64/release/bin ./dist/Sonic4ModLoader/ModManager.exe +# License - GTK4 +dependenciesGtk=$' +cairo +fribidi +gtk4 +harfbuzz +libadwaita +libepoxy +libffi +libjpeg-turbo +libpng +pango +pcre2 +pixman +tiff +zlib +' + +while IFS= read -r dep; do + if [[ $dep != "" ]]; then + cp "C:/gtk-build/gtk/x64/release/share/doc/$dep/COPYING" "./dist/Sonic4ModLoader/Mod Loader - licenses/LICENSE-"$dep || \ + cp "C:/gtk-build/gtk/x64/release/share/doc/$dep/LICENSE" "./dist/Sonic4ModLoader/Mod Loader - licenses/LICENSE-"$dep || \ + cp "C:/gtk-build/gtk/x64/release/share/doc/$dep/LICENSE.md" "./dist/Sonic4ModLoader/Mod Loader - licenses/LICENSE-"$dep".md" || \ + cp "C:/gtk-build/gtk/x64/release/share/doc/$dep/README" "./dist/Sonic4ModLoader/Mod Loader - licenses/LICENSE-"$dep || \ + cp "C:/gtk-build/gtk/x64/release/share/doc/$dep/manual/html/project/license.html" "./dist/Sonic4ModLoader/Mod Loader - licenses/LICENSE-"$dep".html" + fi +done <<< "$dependenciesGtk" + +# SHA256SUMS echo "Creating SHA256SUMS..." cd dist find * -type f -exec sha256sum {} \; >> "SHA256SUMS"