Skip to content

Commit

Permalink
Added run.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaosCow58 committed Jul 13, 2024
1 parent a6a9f3d commit 720c68f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
24 changes: 24 additions & 0 deletions run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@echo off
REM Check if the parameter is provided
if "%1"=="" (
echo Error: No parameter provided.
echo Usage: run.bat [build|deploy]
exit /b 1
)

REM Run applySpotless
echo Running gradlew.bat spotlessApply...
call gradlew.bat spotlessApply

REM Check the provided parameter and run the corresponding command
if "%1"=="build" (
echo Running gradlew.bat build...
call gradlew.bat build
) else if "%1"=="deploy" (
echo Running gradlew.bat deploy...
call gradlew.bat deploy
) else (
echo Error: Invalid parameter "%1" provided.
echo Usage: run.bat [build|deploy]
exit /b 1
)
10 changes: 5 additions & 5 deletions vendordeps/photonlib.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"fileName": "photonlib.json",
"name": "photonlib",
"version": "v2024.2.4",
"version": "v2024.3.1",
"uuid": "515fe07e-bfc6-11fa-b3de-0242ac130004",
"frcYear": "2024",
"mavenUrls": [
Expand All @@ -14,7 +14,7 @@
{
"groupId": "org.photonvision",
"artifactId": "photonlib-cpp",
"version": "v2024.2.4",
"version": "v2024.3.1",
"libName": "photonlib",
"headerClassifier": "headers",
"sharedLibrary": true,
Expand All @@ -29,7 +29,7 @@
{
"groupId": "org.photonvision",
"artifactId": "photontargeting-cpp",
"version": "v2024.2.4",
"version": "v2024.3.1",
"libName": "photontargeting",
"headerClassifier": "headers",
"sharedLibrary": true,
Expand All @@ -46,12 +46,12 @@
{
"groupId": "org.photonvision",
"artifactId": "photonlib-java",
"version": "v2024.2.4"
"version": "v2024.3.1"
},
{
"groupId": "org.photonvision",
"artifactId": "photontargeting-java",
"version": "v2024.2.4"
"version": "v2024.3.1"
}
]
}

0 comments on commit 720c68f

Please sign in to comment.