mirror of
https://github.com/winapps-org/winapps.git
synced 2025-09-24 10:19:31 +02:00
Merge pull request #754 from KernelGhost/main
Add .gitattributes + Fix encodings
This commit is contained in:
4
.gitattributes
vendored
Normal file
4
.gitattributes
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Ensure Windows-friendly line endings and encoding for batch and registry files
|
||||||
|
*.bat text eol=crlf
|
||||||
|
*.cmd text eol=crlf
|
||||||
|
*.reg text eol=crlf working-tree-encoding=UTF-16LE-BOM
|
@@ -8,7 +8,9 @@ repos:
|
|||||||
args: [ "775" ]
|
args: [ "775" ]
|
||||||
files: (\.sh|winapps)$
|
files: (\.sh|winapps)$
|
||||||
- id: forbid-crlf
|
- id: forbid-crlf
|
||||||
|
exclude: '\.(bat|cmd|reg)$'
|
||||||
- id: remove-crlf
|
- id: remove-crlf
|
||||||
|
exclude: '\.(bat|cmd|reg)$'
|
||||||
- id: forbid-tabs
|
- id: forbid-tabs
|
||||||
- id: remove-tabs
|
- id: remove-tabs
|
||||||
args: [ --whitespaces-count, "4" ]
|
args: [ --whitespaces-count, "4" ]
|
||||||
@@ -32,6 +34,7 @@ repos:
|
|||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: fix-byte-order-marker
|
- id: fix-byte-order-marker
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
|
exclude: '\.(bat|cmd|reg)$'
|
||||||
- id: pretty-format-json
|
- id: pretty-format-json
|
||||||
args: [ "--autofix", "--no-sort-keys" ]
|
args: [ "--autofix", "--no-sort-keys" ]
|
||||||
- id: sort-simple-yaml
|
- id: sort-simple-yaml
|
||||||
|
@@ -40,7 +40,7 @@ if %ERRORLEVEL% equ 0 (
|
|||||||
echo [SUCCESS] Firewall changes applied successfully.
|
echo [SUCCESS] Firewall changes applied successfully.
|
||||||
) else (
|
) else (
|
||||||
echo [ERROR] Failed to apply firewall changes.
|
echo [ERROR] Failed to apply firewall changes.
|
||||||
echo Please manually enable Remote Desktop via 'Settings ► System ► Remote Desktop'.
|
echo Please manually enable Remote Desktop via 'Settings --> System --> Remote Desktop'.
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user