mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-21 17:20:25 +01:00
Add export ignored files to .gitattributes
Move THIRDPARTY_NOTICE files to addons/godot_xterm so they will be included with asset-lib downloads.
This commit is contained in:
parent
3e2162d366
commit
3e67cfd877
6 changed files with 69 additions and 3 deletions
31
.gitattributes
vendored
31
.gitattributes
vendored
|
@ -13,3 +13,34 @@
|
|||
*.ttf binary
|
||||
*.wasm binary
|
||||
*.wav binary
|
||||
|
||||
# Files to exclude from asset-lib download.
|
||||
/.github export-ignore
|
||||
/addons/gd-plug export-ignore
|
||||
/docs export-ignore
|
||||
/examples export-ignore
|
||||
/misc export-ignore
|
||||
/test export-ignore
|
||||
/.gitattributes export-ignore
|
||||
/.gitignore export-ignore
|
||||
/.gitmodules export-ignore
|
||||
/CHANGELOG.md export-ignore
|
||||
/LICENSE.md export-ignore
|
||||
/README.md export-ignore
|
||||
/default_env.tres export-ignore
|
||||
/export_presets.cfg export-ignore
|
||||
/icon.png export-ignore
|
||||
/icon.png.import export-ignore
|
||||
/plug.gd export-ignore
|
||||
/project.godot export-ignore
|
||||
/.github export-ignore
|
||||
/.import export-ignore
|
||||
/test export-ignore
|
||||
/project.godot export-ignore
|
||||
/default_env.tres export-ignore
|
||||
/.gutconfig.json export-ignore
|
||||
/README.md export-ignore
|
||||
/addons/gd-plug export-ignore
|
||||
/plug.gd export-ignore
|
||||
/LICENSE export-ignore
|
||||
/misc export-ignore
|
||||
|
|
35
.github/workflows/main.yml
vendored
35
.github/workflows/main.yml
vendored
|
@ -239,3 +239,38 @@ jobs:
|
|||
with:
|
||||
run: ./godot_executable/${{ env.GODOT }} --no-window -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.unix.json
|
||||
|
||||
|
||||
# Git archive should only include addons/godot_xterm directory.
|
||||
check-archive:
|
||||
name: 'Check Archive'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Create git archive
|
||||
run: git archive -o archive.zip HEAD
|
||||
- name: Extract archive
|
||||
run: mkdir -p /tmp/unzipped && unzip archive.zip -d /tmp/unzipped
|
||||
- name: Check that archive only contains addons directory
|
||||
run: |
|
||||
shopt -s nullglob dotglob
|
||||
ls -lR /tmp/unzipped
|
||||
files=(/tmp/unzipped/*)
|
||||
if [ ${#files[@]} -ne 1 ]; then
|
||||
echo "Wrong number of files in archive (${#files[@]}) expected 1."
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -d "/tmp/unzipped/addons" ]; then
|
||||
echo "Expected directory (addons) not found."
|
||||
exit 1
|
||||
fi
|
||||
files=(/tmp/unzipped/addons)
|
||||
if [ ${#files[@]} -ne 1 ]; then
|
||||
echo "Wrong number of files in addons directory (${#files[@]}) expected 1."
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -d "/tmp/unzipped/addons/godot_xterm" ]; then
|
||||
echo "Expected directory (addons/godot_xterm) not found."
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
@ -177,9 +177,9 @@ You are also implicitly verifying that all code is your original work, or unorig
|
|||
|
||||
### Third-party components
|
||||
|
||||
The GDNative source code incorporates code snippets and source code from many third-party libraries. The licenses of these components can be found in the various sub-directories of this project (provided git submodules have been cloned). Many of these licenses must be distributed with source and binary distributions of this software. For convenience, the texts of these licenses have been bundled together (but clearly demarcated) in the [THIRDPARTY_NOTICES.txt](/THIRDPARTY_NOTICES.txt) file.
|
||||
The GDNative source code incorporates code snippets and source code from many third-party libraries. The licenses of these components can be found in the various sub-directories of this project (provided git submodules have been cloned). Many of these licenses must be distributed with source and binary distributions of this software. For convenience, the texts of these licenses have been bundled together (but clearly demarcated) in the [THIRDPARTY_NOTICES.txt](/addons/godot_xterm/THIRDPARTY_NOTICES.txt) file.
|
||||
|
||||
**Note:** On platforms where the PTY node is not supported or if the library has been compiled with the option `disable_pty=yes` then only the licenses bundled in [THIRDPARTY_NOTICES_nopty.txt](/THIRDPARTY_NOTICES_nopty.txt) are applicable.
|
||||
**Note:** On platforms where the PTY node is not supported or if the library has been compiled with the option `disable_pty=yes` then only the licenses bundled in [THIRDPARTY_NOTICES_nopty.txt](/addons/godot_xterm/THIRDPARTY_NOTICES_nopty.txt) are applicable.
|
||||
|
||||
[build.sh]: /addons/godot_xterm/native/build.sh
|
||||
[dist]: /addons/godot_xterm/native/dist
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
# Based on the format of microsoft/vscodes ThirdPartyNotices.txt file:
|
||||
# https://github.com/Microsoft/vscode/blob/main/ThirdPartyNotices.txt
|
||||
|
||||
out=THIRDPARTY_NOTICES.txt
|
||||
out=addons/godot_xterm/THIRDPARTY_NOTICES.txt
|
||||
|
||||
# List of licenses to be concatenated.
|
||||
# Format (space seperated): Software name, Path to license file from git repo root.
|
||||
|
|
Loading…
Reference in a new issue