-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error in export TSV, add some samples, basic build pipeline
- Loading branch information
1 parent
4598ded
commit 9959b41
Showing
4 changed files
with
81 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
echo on | ||
|
||
:: Move to project folder | ||
pushd . | ||
cd src/gfz-cli | ||
|
||
:: Build all targets | ||
dotnet publish -r linux-x64 | ||
dotnet publish -r osx.10.10-x64 | ||
dotnet publish -r osx.11.0-x64 | ||
dotnet publish -r osx.12-x64 | ||
dotnet publish -r rhel-x64 | ||
dotnet publish -r win-x86 | ||
dotnet publish -r win-x64 | ||
|
||
:: Go back to root folder | ||
popd | ||
|
||
:: Copy the publish folder to the root of the git repo | ||
:: https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy | ||
:: /s Copies subdirectories. This option automatically excludes empty directories. | ||
|
||
robocopy .\src\gfz-cli\bin\Debug\net6.0\linux-x64\publish\ .\builds\linux-x64\ /s | ||
robocopy .\src\gfz-cli\bin\Debug\net6.0\osx.10.10-x64\publish\ .\builds\osx.10.10-x64\ /s | ||
robocopy .\src\gfz-cli\bin\Debug\net6.0\osx.11.0-x64\publish\ .\builds\osx.11.0-x64\ /s | ||
robocopy .\src\gfz-cli\bin\Debug\net6.0\osx.12-x64\publish\ .\builds\osx.12-x64\ /s | ||
robocopy .\src\gfz-cli\bin\Debug\net6.0\rhel-x64\publish\ .\builds\rhel-x64\ /s | ||
robocopy .\src\gfz-cli\bin\Debug\net6.0\win-x86\publish\ .\builds\win-x86\ /s | ||
robocopy .\src\gfz-cli\bin\Debug\net6.0\win-x64\publish\ .\builds\win-x64\ /s | ||
|
||
:: Compress folders as ZIP | ||
pushd . | ||
cd builds\ | ||
|
||
tar.exe -a -c -f linux-x64.zip linux-x64 | ||
tar.exe -a -c -f osx10.10-x64.zip osx10.10-x64 | ||
tar.exe -a -c -f osx.11.0-x64.zip osx.11.0-x64 | ||
tar.exe -a -c -f osx.12-x64.zip osx.12-x64 | ||
tar.exe -a -c -f rhel-x64.zip rhel-x64 | ||
tar.exe -a -c -f win-x86.zip win-x86 | ||
tar.exe -a -c -f win-x64.zip win-x64 | ||
|
||
popd | ||
|
||
:: For debugging | ||
:: PAUSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Convert cardata.lz | ||
|
||
```shell | ||
gfz-cli.exe --cardata-tsv-to-bin D:\gfzj01\game\cardata.tsv | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
:: CARDATA | ||
:: Create spreadsheet to edit vehicle parameters | ||
:: ./win-x64 gfz-cli.exe --cardata-bin-to-tsv D:\gfzj01\game\cardata.lz | ||
:: Convert spreadsheet into `cardata.tsv.bin` | ||
:: ./win-x64 gfz-cli.exe --cardata-tsv-to-bin D:\gfzj01\game\cardata.tsv | ||
|
||
|
||
:: DECOMPRESS | ||
:: Decompress specific file | ||
:: ./win-x64 gfz-cli.exe --lzd D:\gfzj01\stage\st01.gma.lz | ||
:: Decompress all lz files in folder | ||
:: ./win-x64 gfz-cli.exe --lzd D:\gfzj01\stage\ | ||
:: Decompress all lz files in folder and subfolders | ||
:: ./win-x64 gfz-cli.exe --lzd D:\gfzj01\ --searchSubdirs | ||
|
||
:: COMPRESS | ||
:: Compress specific file | ||
:: ./win-x64 gfz-cli.exe --lzc D:\gfzj01\stage\st01.gma | ||
:: Compress all gma files in folder | ||
:: ./win-x64 gfz-cli.exe --lzc D:\gfzj01\stage\ --searchPattern *.gma | ||
:: Compress all gma files in folder and subfolders | ||
:: ./win-x64 gfz-cli.exe --lzc D:\gfzj01\ --searchPattern *.gma --searchSubdirs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters