Compare commits
3 Commits
master
...
pre-releas
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4dcc723c9c | ||
|
|
8988b1dc65 | ||
|
|
72c1df79ca |
@@ -1,10 +1,12 @@
|
|||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
|
|
||||||
|
$branch = git rev-parse --abbrev-ref HEAD
|
||||||
|
|
||||||
# Move to the git root if we arn't already there
|
# Move to the git root if we arn't already there
|
||||||
git rev-parse --show-toplevel | Set-Location
|
git rev-parse --show-toplevel | Set-Location
|
||||||
|
|
||||||
# get the server jar from the install directory ( in future support pre-release )
|
# get the server jar from the install directory ( in future support pre-release )
|
||||||
$server_jar = resolve-path "$env:APPDATA/Hytale/install/release/package/game/latest/Server/HytaleServer.jar"
|
$server_jar = resolve-path "$env:APPDATA/Hytale/install/$branch/package/game/latest/Server/HytaleServer.jar"
|
||||||
|
|
||||||
# clear the source directory
|
# clear the source directory
|
||||||
Get-ChildItem -Path "src" | Remove-Item -Recurse -Force -Confirm:$false
|
Get-ChildItem -Path "src" | Remove-Item -Recurse -Force -Confirm:$false
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ repositories {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
|
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
|
||||||
implementation(files("${System.getenv("APPDATA")}/Hytale/install/pre-release/package/game/latest/Server/HytaleServer.jar"))
|
implementation(files("${System.getenv("APPDATA")}/Hytale/install/release/package/game/latest/Server/HytaleServer.jar"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user