Add .gitattributes: enforce LF line endings, mark binary files
Some checks failed
Repo Health / Access control (push) Successful in 1s
Repo Health / Release configuration (push) Failing after 4s
Repo Health / Scripts governance (push) Successful in 4s
Repo Health / Repository health (push) Failing after 4s

Stops CRLF warnings on Windows and ensures consistent line endings
across all platforms.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan Miller
2026-04-18 16:17:20 -05:00
parent 017481d071
commit 87d53df6b6
2 changed files with 55 additions and 38 deletions

17
.gitattributes vendored Normal file
View File

@@ -0,0 +1,17 @@
# Force LF line endings for all text files
* text=auto eol=lf
# Explicitly mark binary files
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.svg text eol=lf
*.woff binary
*.woff2 binary
*.ttf binary
*.eot binary
*.zip binary
*.gz binary
*.tar binary

View File

@@ -1,39 +1,39 @@
<!-- <!--
Joomla Extension Update Server XML Joomla Extension Update Server XML
See: https://docs.joomla.org/Deploying_an_Update_Server See: https://docs.joomla.org/Deploying_an_Update_Server
This file is the update server manifest for {{EXTENSION_NAME}}. This file is the update server manifest for {{EXTENSION_NAME}}.
The Joomla installer polls this URL to check for new versions. The Joomla installer polls this URL to check for new versions.
The manifest.xml in this repository must reference this file: The manifest.xml in this repository must reference this file:
<updateservers> <updateservers>
<server type="extension" priority="1" name="{{EXTENSION_NAME}}"> <server type="extension" priority="1" name="{{EXTENSION_NAME}}">
https://git.mokoconsulting.tech/mokoconsulting-tech/MokoCassiopeia/raw/branch/main/update.xml https://git.mokoconsulting.tech/mokoconsulting-tech/MokoCassiopeia/raw/branch/main/update.xml
</server> </server>
<server type="extension" priority="2" name="{{EXTENSION_NAME}}"> <server type="extension" priority="2" name="{{EXTENSION_NAME}}">
https://raw.githubusercontent.com/mokoconsulting-tech/MokoCassiopeia/main/update.xml https://raw.githubusercontent.com/mokoconsulting-tech/MokoCassiopeia/main/update.xml
</server> </server>
</updateservers> </updateservers>
When a new release is made, run `make release` or the release workflow to When a new release is made, run `make release` or the release workflow to
prepend a new <update> entry to this file automatically. prepend a new <update> entry to this file automatically.
--> -->
<updates> <updates>
<update> <update>
<name>{{EXTENSION_NAME}}</name> <name>{{EXTENSION_NAME}}</name>
<description>MokoCassiopeia — Moko Consulting Joomla extension</description> <description>MokoCassiopeia — Moko Consulting Joomla extension</description>
<element>{{EXTENSION_ELEMENT}}</element> <element>{{EXTENSION_ELEMENT}}</element>
<type>{{EXTENSION_TYPE}}</type> <type>{{EXTENSION_TYPE}}</type>
<version>{{VERSION}}</version> <version>{{VERSION}}</version>
<downloads> <downloads>
<downloadurl type="full" format="zip"> <downloadurl type="full" format="zip">
https://git.mokoconsulting.tech/mokoconsulting-tech/MokoCassiopeia/releases/download/v{{VERSION}}/{{EXTENSION_ELEMENT}}.zip https://git.mokoconsulting.tech/mokoconsulting-tech/MokoCassiopeia/releases/download/v{{VERSION}}/{{EXTENSION_ELEMENT}}.zip
</downloadurl> </downloadurl>
<downloadurl type="full" format="zip"> <downloadurl type="full" format="zip">
https://github.com/mokoconsulting-tech/MokoCassiopeia/releases/download/v{{VERSION}}/{{EXTENSION_ELEMENT}}.zip https://github.com/mokoconsulting-tech/MokoCassiopeia/releases/download/v{{VERSION}}/{{EXTENSION_ELEMENT}}.zip
</downloadurl> </downloadurl>
</downloads> </downloads>
<targetplatform name="joomla" version="[56].*"/> <targetplatform name="joomla" version="[56].*"/>
<php_minimum>8.1</php_minimum> <php_minimum>8.1</php_minimum>
</update> </update>
</updates> </updates>