3 Commits

Author SHA1 Message Date
bdb3418b67 fix useless DB versioning in release builds
Idk why, but in my first commit here I just commented out the lines
restricting DB schema suffixes to debug builds only, and before all that
mess there was a "TODO: fix".
I'm only doing this for sake of tools like BeatmapExporter and to not
clog up disk space when newer schema versions arrive.
This should work well with existing installations (hopefully)
2025-12-02 20:15:00 +03:00
936640edeb update some configs for iOS 2025-11-21 19:04:31 +03:00
1187d03333 prepare repo for github ci/cd (mostly) 2025-11-21 18:59:41 +03:00
14 changed files with 47 additions and 24 deletions

View File

@@ -1,8 +1,10 @@
name: Update osu-web mod definitions
name: Update osu-web mod definitions (DO NOT USE YET!!!!!)
on:
push:
tags:
- '*'
workflow_dispatch:
# push:
# tags:
# - '*'
permissions:
contents: read # to fetch code (actions/checkout)

View File

@@ -1,4 +1,10 @@
on: [push, pull_request]
on:
push:
tags:
- '*'
workflow_dispatch:
name: Continuous Integration
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

View File

@@ -4,6 +4,7 @@ on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
notify_pending_production_deploy:
@@ -12,7 +13,7 @@ jobs:
- name: Submit pending deployment notification
run: |
export TITLE="Pending osu Production Deployment: $GITHUB_REF_NAME"
export URL="https://github.com/ppy/osu/actions/runs/$GITHUB_RUN_ID"
export URL="https://github.com/jvnkosu-dev/client/actions/runs/$GITHUB_RUN_ID"
export DESCRIPTION="Awaiting approval for building NuGet packages for tag $GITHUB_REF_NAME:
[View Workflow Run]($URL)"
export ACTOR_ICON="https://avatars.githubusercontent.com/u/$GITHUB_ACTOR_ID"

View File

@@ -23,7 +23,7 @@ jobs:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ppy
SENTRY_PROJECT: osu
SENTRY_URL: https://sentry.ppy.sh/
SENTRY_URL: https://satellite.jvnko.boats/
with:
environment: production
version: osu@${{ github.ref_name }}
version: jvnkosu@${{ github.ref_name }}

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="sh.ppy.osulazer" android:installLocation="auto">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="boats.jvnko.osu.android" android:installLocation="auto">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="34" />
<application android:allowBackup="true"
android:supportsRtl="true"

View File

@@ -8,7 +8,7 @@
<PropertyGroup Label="Nuget">
<Title>osu!catch (ruleset)</Title>
<PackageId>ppy.osu.Game.Rulesets.Catch</PackageId>
<PackageId>jvnkosu.Client.Rulesets.Catch</PackageId>
<IsPackable>true</IsPackable>
</PropertyGroup>

View File

@@ -8,7 +8,7 @@
<PropertyGroup Label="Nuget">
<Title>osu!mania (ruleset)</Title>
<PackageId>ppy.osu.Game.Rulesets.Mania</PackageId>
<PackageId>jvnkosu.Client.Rulesets.Mania</PackageId>
<IsPackable>true</IsPackable>
</PropertyGroup>

View File

@@ -8,7 +8,7 @@
<PropertyGroup Label="Nuget">
<Title>osu! (ruleset)</Title>
<PackageId>ppy.osu.Game.Rulesets.Osu</PackageId>
<PackageId>jvnkosu.Client.Rulesets.Osu</PackageId>
<IsPackable>true</IsPackable>
</PropertyGroup>

View File

@@ -8,7 +8,7 @@
<PropertyGroup Label="Nuget">
<Title>osu!taiko (ruleset)</Title>
<PackageId>ppy.osu.Game.Rulesets.Taiko</PackageId>
<PackageId>jvnkosu.Client.Rulesets.Taiko</PackageId>
<IsPackable>true</IsPackable>
</PropertyGroup>

View File

@@ -206,12 +206,25 @@ namespace osu.Game.Database
if (!Filename.EndsWith(realm_extension, StringComparison.Ordinal))
Filename += realm_extension;
// TODO: fix
// #if DEBUG
// since I'm an idiot, I will have to suffer
#if DEBUG
if (!DebugUtils.IsNUnitRunning)
applyFilenameSchemaSuffix(ref Filename);
// #endif
#endif
#if !DEBUG
// in the lazer. straight up "migrating it". and by "it", haha, well. let's just say. My realm .
string altFilename = filename;
applyFilenameSchemaSuffix(ref altFilename); // it also migrates older versions automagically!
if (storage.Exists(altFilename) && !storage.Exists(Filename))
{
using (var previous = storage.GetStream(altFilename))
using (var current = storage.CreateFileSafely(Filename))
{
Logger.Log($@"Migrating production build DB: {altFilename} -> {Filename}");
previous.CopyTo(current);
}
}
#endif
// `prepareFirstRealmAccess()` triggers the first `getRealmInstance` call, which will implicitly run realm migrations and bring the schema up-to-date.
using (var realm = prepareFirstRealmAccess())
cleanupPendingDeletions(realm);

View File

@@ -17,6 +17,7 @@ using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Bindables;
using osu.Framework.Configuration;
using osu.Framework.Development;
using osu.Framework.Extensions.IEnumerableExtensions;
using osu.Framework.Extensions.TypeExtensions;
using osu.Framework.Graphics;
@@ -1185,8 +1186,8 @@ namespace osu.Game
Margin = new MarginPadding(5),
}, topMostOverlayContent.Add);
// if (!IsDeployedBuild) // we're going to have the "developer build" banner for a while
loadComponentSingleFile(devBuildBanner = new DevBuildBanner(), ScreenContainer.Add);
if (!IsDeployedBuild && DebugUtils.IsDebugBuild)
loadComponentSingleFile(devBuildBanner = new DevBuildBanner(), ScreenContainer.Add);
loadComponentSingleFile(osuLogo, _ =>
{

View File

@@ -6,7 +6,7 @@
</PropertyGroup>
<PropertyGroup Label="Nuget">
<Title>jvnkosu!</Title>
<PackageId>ppy.osu.Game</PackageId>
<PackageId>jvnkosu.Client</PackageId>
<Version>0.0.0</Version>
<PackageIcon>icon.png</PackageIcon>
<IsPackable>true</IsPackable>

View File

@@ -3,11 +3,11 @@
<plist version="1.0">
<dict>
<key>CFBundleIdentifier</key>
<string>sh.ppy.osulazer</string>
<string>boats.jvnko.osu.ios</string>
<key>CFBundleName</key>
<string>osu!</string>
<string>jvnkosu!</string>
<key>CFBundleDisplayName</key>
<string>osu!</string>
<string>jvnkosu!</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>MinimumOSVersion</key>

View File

@@ -24,7 +24,7 @@ namespace osu.iOS
public override string Version => NSBundle.MainBundle.InfoDictionary["OsuVersion"].ToString();
public override bool HideUnlicensedContent => true;
public override bool HideUnlicensedContent => false;
public override Vector2 ScalingContainerTargetDrawSize => new Vector2(1024, 1024 * DrawHeight / DrawWidth);