Skip to content

Commit

Permalink
Fix release action and buildQMOD
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-r-elp committed Mar 12, 2022
1 parent acea53b commit a5dc960
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/buildMod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
- '**.ogg'
- '**.zip'
pull_request:
branches: [ master, dev ]
branches: [ main, dev ]

env:
module_id: ClockMod
Expand Down
18 changes: 12 additions & 6 deletions buildQMOD.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,8 @@ if ($qmodName -eq "")
exit
}

if ($package -eq $true) {
$qmodName = "$($env:module_id)_$($env:version)"
echo "Actions: Packaging QMod $qmodName"
}
if (($args.Count -eq 0) -And $package -eq $false) {
echo "Creating QMod $qmodName"
if (($args.Count -eq 0 -or $dev -eq $true) -And $package -eq $false) {
echo "Packaging QMod $qmodName"
& $PSScriptRoot/build.ps1 -clean:$clean

if ($LASTEXITCODE -ne 0) {
Expand All @@ -67,6 +63,16 @@ if ((-not ($cover -eq "./")) -and (Test-Path $cover))
echo "No cover Image found"
}

if ($package -eq $true -And $env:version.Contains('-Dev')) {
$qmodName = "$($env:module_id)_$($env:version)"
echo "Actions: Packaging QMod $qmodName"
} elseif ($package -eq $true) {
$qmodName = "$($env:module_id)"
echo "Actions: Packaging QMod $qmodName"
} else {
$qmodName += "_$($modJson.version)"
}

foreach ($mod in $modJson.modFiles)
{
$path = "./build/" + $mod
Expand Down
9 changes: 5 additions & 4 deletions mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,26 @@
"name": "Clock Mod",
"id": "ClockMod",
"author": "BoopetyDoopety, EnderdracheLP",
"version": "1.5.2",
"version": "1.5.2-Dev",
"packageId": "com.beatgames.beatsaber",
"packageVersion": "1.19.1",
"description": "Displays the time in game. Alternatively also the Battery Percentage",
"coverImage": "Cover.jpg",
"dependencies": [
{
"version": "^0.15.7",
"id": "custom-types",
"downloadIfMissing": "https://github.com/sc2ad/Il2CppQuestTypePatching/releases/download/v0.15.8/CustomTypes.qmod"
},
{
"version": "^0.21.0",
"version": "^0.20.0",
"id": "codegen",
"downloadIfMissing": "https://github.com/sc2ad/BeatSaber-Quest-Codegen/releases/download/v0.21.0/Codegen.qmod"
"downloadIfMissing": "https://github.com/sc2ad/BeatSaber-Quest-Codegen/releases/download/v0.20.0/Codegen.qmod"
},
{
"version": "^0.13.2",
"id": "questui",
"downloadIfMissing": "https://github.com/darknight1050/questui/releases/download/v0.13.3/QuestUI.qmod"
"downloadIfMissing": "https://github.com/darknight1050/questui/releases/download/v0.13.2/QuestUI.qmod"
}
],
"modFiles": [
Expand Down
2 changes: 1 addition & 1 deletion qpm.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"info": {
"name": "Clock Mod",
"id": "ClockMod",
"version": "1.5.2",
"version": "1.5.2-Dev",
"url": null,
"additionalData": {
"overrideSoName": "libClockMod.so"
Expand Down
14 changes: 14 additions & 0 deletions rl-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
**Features:**
- Option to switch between 12/24 Hour format.
- Option to display seconds.
- Option to hide clock in song, "No Text And HUD" will do the same.
- Option to change font size (default: 3.5).
- Option to show Headset Battery charge Indicator, will change color according to charge, off by default.
- Option to Rainbowify the Clock.
- Option to change Clock Color, (unless rainbowify is on).
- Option to choose between the Clock being at the Top or the Bottom.

__**Changelog:**__
- Update to 1.19.1

__**Download:**__

0 comments on commit a5dc960

Please sign in to comment.