From 14e07fa9b4102226ee034fa98cea4f6120300549 Mon Sep 17 00:00:00 2001 From: ShiinaSekiu <89997950+ShiinaSekiu@users.noreply.github.com> Date: Mon, 13 May 2024 10:16:26 +0800 Subject: [PATCH] Add license to artifacts and src (#93) Add license to artifacts and src --- cjson/LICENSE | 19 +++++++++++++++++++ dlfcn-win32/LICENSE | 17 +++++++++++++++++ scripts/build.sh | 19 +++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 cjson/LICENSE create mode 100644 dlfcn-win32/LICENSE diff --git a/cjson/LICENSE b/cjson/LICENSE new file mode 100644 index 0000000..4723447 --- /dev/null +++ b/cjson/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2009-2017 Dave Gamble and cJSON contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/dlfcn-win32/LICENSE b/dlfcn-win32/LICENSE new file mode 100644 index 0000000..c623d69 --- /dev/null +++ b/dlfcn-win32/LICENSE @@ -0,0 +1,17 @@ +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/scripts/build.sh b/scripts/build.sh index fe085eb..9cdea24 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -50,6 +50,10 @@ case "${1:-}" in make) cmake "$WORKSPACE" make -j + cp "$WORKSPACE/src/LICENSE" output/lpac-LICENSE + cp "$WORKSPACE/euicc/LICENSE" output/libeuicc-LICENSE + cp "$WORKSPACE/cjson/LICENSE" output/cjson-LICENSE + cp "$WORKSPACE/dlfcn-win32/LICENSE" output/dlfcn-win32-LICENSE zip -r -j "$WORKSPACE/lpac-$KERNEL-$MATCHINE.zip" output/* ;; debian) @@ -62,6 +66,11 @@ mingw) make -j CURL="$(download "$MINGW_CURL_WIN64_BLOB")" cp "$CURL"/curl-*-mingw/bin/libcurl-x64.dll output/libcurl.dll + cp "$CURL"/curl-*-mingw/COPYING.txt output/libcurl-LICENSE + cp "$WORKSPACE/src/LICENSE" output/lpac-LICENSE + cp "$WORKSPACE/euicc/LICENSE" output/libeuicc-LICENSE + cp "$WORKSPACE/cjson/LICENSE" output/cjson-LICENSE + cp "$WORKSPACE/dlfcn-win32/LICENSE" output/dlfcn-win32-LICENSE zip -r -j "$WORKSPACE/lpac-windows-x86_64-mingw.zip" output/* ;; woa-mingw) @@ -70,6 +79,11 @@ woa-mingw) make -j CURL="$(download "$MINGW_CURL_WIN64A_BLOB")" cp "$CURL"/curl-*-mingw/bin/libcurl-arm64.dll output/libcurl.dll + cp "$CURL"/curl-*-mingw/COPYING.txt output/libcurl-LICENSE + cp "$WORKSPACE/src/LICENSE" output/lpac-LICENSE + cp "$WORKSPACE/euicc/LICENSE" output/libeuicc-LICENSE + cp "$WORKSPACE/cjson/LICENSE" output/cjson-LICENSE + cp "$WORKSPACE/dlfcn-win32/LICENSE" output/dlfcn-win32-LICENSE zip -r -j "$WORKSPACE/lpac-windows-arm64-mingw.zip" output/* ;; woa-zig) @@ -77,6 +91,11 @@ woa-zig) make -j CURL="$(download "$MINGW_CURL_WIN64A_BLOB")" cp "$CURL"/curl-*-mingw/bin/libcurl-arm64.dll output/libcurl.dll + cp "$CURL"/curl-*-mingw/COPYING.txt output/libcurl-LICENSE + cp "$WORKSPACE/src/LICENSE" output/lpac-LICENSE + cp "$WORKSPACE/euicc/LICENSE" output/libeuicc-LICENSE + cp "$WORKSPACE/cjson/LICENSE" output/cjson-LICENSE + cp "$WORKSPACE/dlfcn-win32/LICENSE" output/dlfcn-win32-LICENSE zip -r -j "$WORKSPACE/lpac-windows-arm64-zig.zip" output/* ;; *)