Compare commits

..

2 Commits

Author SHA1 Message Date
DecDuck b9a154dde8 fix: null strings in setup versions 2025-02-12 12:05:47 +11:00
DecDuck 93a58c0d04 fix: import ui setup autocomplete 2025-01-28 15:20:06 +11:00
4 changed files with 27 additions and 7 deletions
+4 -4
View File
@@ -104,7 +104,7 @@
:placeholder="'setup.exe'"
/>
<ComboboxButton
v-if="launchFilteredVersionGuesses?.length ?? 0 > 0"
v-if="setupFilteredVersionGuesses?.length ?? 0 > 0"
class="absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"
>
<ChevronUpDownIcon
@@ -156,8 +156,8 @@
</li>
</ComboboxOption>
<ComboboxOption
:value="launchProcessQuery"
v-if="launchProcessQuery"
:value="setupProcessQuery"
v-if="setupProcessQuery"
v-slot="{ active, selected }"
>
<li
@@ -171,7 +171,7 @@
<span
:class="['block truncate', selected && 'font-semibold']"
>
"{{ launchProcessQuery }}"
"{{ setupProcessQuery }}"
</span>
<span
@@ -0,0 +1,20 @@
/*
Warnings:
- Made the column `launchCommand` on table `GameVersion` required. This step will fail if there are existing NULL values in that column.
- Made the column `setupCommand` on table `GameVersion` required. This step will fail if there are existing NULL values in that column.
*/
UPDATE "GameVersion"
SET "launchCommand" = ''
WHERE "launchCommand" is NULL;
UPDATE "GameVersion"
SET "setupCommand" = ''
WHERE "launchCommand" is NULL;
-- AlterTable
ALTER TABLE "GameVersion" ALTER COLUMN "launchCommand" SET NOT NULL,
ALTER COLUMN "launchCommand" SET DEFAULT '',
ALTER COLUMN "setupCommand" SET NOT NULL,
ALTER COLUMN "setupCommand" SET DEFAULT '';
+2 -2
View File
@@ -46,9 +46,9 @@ model GameVersion {
platform Platform
launchCommand String? // Command to run to start. Platform-specific. Windows games on Linux will wrap this command in Proton/Wine
launchCommand String @default("") // Command to run to start. Platform-specific. Windows games on Linux will wrap this command in Proton/Wine
launchArgs String[]
setupCommand String? // Command to setup game (dependencies and such)
setupCommand String @default("") // Command to setup game (dependencies and such)
setupArgs String[]
onlySetup Boolean @default(false)