Skip to content

Commit

Permalink
I hope I included all licenses that is possible to get from the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
OSA413 committed Aug 25, 2024
1 parent 0274c6e commit 8c7ec23
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
31 changes: 31 additions & 0 deletions pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8c7ec23

Please sign in to comment.