Skip to content

Commit 8e0b45b

Browse files
committed
Merge remote-tracking branch 'origin/main' into cal/content-tab-rewrite-hosting
2 parents 1a01cf8 + f81f951 commit 8e0b45b

File tree

143 files changed

+11553
-6628
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+11553
-6628
lines changed

.github/workflows/theseus-build.yml

Lines changed: 39 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
sign-windows-binaries:
2020
description: Sign Windows binaries
2121
type: boolean
22-
default: true
22+
default: false
2323
required: false
2424

2525
jobs:
@@ -40,33 +40,48 @@ jobs:
4040
runs-on: ${{ matrix.platform }}
4141

4242
steps:
43-
- name: 📥 Check out code
43+
- name: Check out code
4444
uses: actions/checkout@v4
4545
with:
4646
fetch-depth: 0
4747

48-
- name: 🧰 Setup Rust toolchain
48+
- name: Setup Rust toolchain
4949
uses: actions-rust-lang/setup-rust-toolchain@v1
5050
with:
5151
rustflags: ''
5252
target: ${{ startsWith(matrix.platform, 'macos') && 'x86_64-apple-darwin' || '' }}
5353

54-
- name: 🧰 Install pnpm
54+
- name: Install pnpm
5555
uses: pnpm/action-setup@v4
5656

57-
- name: 🧰 Setup Node.js
57+
- name: Setup Node.js
5858
uses: actions/setup-node@v4
5959
with:
6060
node-version-file: .nvmrc
6161
cache: pnpm
6262

63-
- name: 🧰 Install Linux build dependencies
63+
- name: Generate tauri-dev.conf.json
64+
shell: bash
65+
run: |
66+
GIT_HASH=$(git rev-parse --short HEAD)
67+
cat > apps/app/tauri-dev.conf.json <<EOF
68+
{
69+
"productName": "Modrinth App (dev-${GIT_HASH})",
70+
"mainBinaryName": "Modrinth App (dev-${GIT_HASH})",
71+
"identifier": "ModrinthApp-dev-${GIT_HASH}",
72+
"bundle": {
73+
"fileAssociations": []
74+
}
75+
}
76+
EOF
77+
78+
- name: Install Linux build dependencies
6479
if: startsWith(matrix.platform, 'ubuntu')
6580
run: |
6681
sudo apt-get update
6782
sudo apt-get install -yq libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev
6883
69-
- name: 🧰 Setup Dasel
84+
- name: Setup Dasel
7085
uses: jaxxstorm/action-install-gh-release@v2.1.0
7186
with:
7287
repo: TomWright/dasel
@@ -75,7 +90,7 @@ jobs:
7590
rename-to: ${{ startsWith(matrix.platform, 'windows') && 'dasel.exe' || 'dasel' }}
7691
chmod: 0755
7792

78-
- name: ⚙️ Set application version and environment
93+
- name: Set application version and environment
7994
shell: bash
8095
run: |
8196
APP_VERSION="$(git describe --tags --always | sed -E 's/-([0-9]+)-(g[0-9a-fA-F]+)$/-canary+\1.\2/')"
@@ -86,13 +101,13 @@ jobs:
86101
87102
cp packages/app-lib/.env.prod packages/app-lib/.env
88103
89-
- name: 💨 Setup Turbo cache
104+
- name: Setup Turbo cache
90105
uses: rharkor/caching-for-turbo@v1.8
91106

92-
- name: 🧰 Install dependencies
107+
- name: Install dependencies
93108
run: pnpm install
94109

95-
- name: ✍️ Set up Windows code signing
110+
- name: Set up Windows code signing
96111
if: startsWith(matrix.platform, 'windows')
97112
shell: bash
98113
run: |
@@ -102,8 +117,8 @@ jobs:
102117
dasel delete -f apps/app/tauri-release.conf.json 'bundle.windows.signCommand'
103118
fi
104119
105-
- name: 🔨 Build macOS app
106-
run: pnpm --filter=@modrinth/app run tauri build --target universal-apple-darwin --config tauri-release.conf.json
120+
- name: Build macOS app
121+
run: ${{ github.ref == 'refs/heads/main' && 'pnpm --filter=@modrinth/app run tauri build --target universal-apple-darwin --config tauri-release.conf.json' || 'pnpm --filter=@modrinth/app run tauri build --target universal-apple-darwin --config tauri-dev.conf.json' }}
107122
if: startsWith(matrix.platform, 'macos')
108123
env:
109124
ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }}
@@ -116,19 +131,19 @@ jobs:
116131
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
117132
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
118133

119-
- name: 🔨 Build Linux app
120-
run: pnpm --filter=@modrinth/app run tauri build --config tauri-release.conf.json
134+
- name: Build Linux app
135+
run: ${{ github.ref == 'refs/heads/main' && 'pnpm --filter=@modrinth/app run tauri build --config tauri-release.conf.json' || 'pnpm --filter=@modrinth/app run tauri build --config tauri-dev.conf.json' }}
121136
if: startsWith(matrix.platform, 'ubuntu')
122137
env:
123138
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
124139
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
125140

126-
- name: 🔨 Build Windows app
141+
- name: Build Windows app
127142
run: |
128143
[System.Convert]::FromBase64String("$env:DIGICERT_ONE_SIGNER_CLIENT_CERTIFICATE_BASE64") | Set-Content -Path signer-client-cert.p12 -AsByteStream
129144
$env:DIGICERT_ONE_SIGNER_CREDENTIALS = "$env:DIGICERT_ONE_SIGNER_API_KEY|$PWD\signer-client-cert.p12|$env:DIGICERT_ONE_SIGNER_CLIENT_CERTIFICATE_PASSWORD"
130145
$env:JAVA_HOME = "$env:JAVA_HOME_17_X64"
131-
pnpm --filter=@modrinth/app run tauri build --config tauri-release.conf.json --verbose --bundles 'nsis,updater'
146+
${{ github.ref == 'refs/heads/main' && 'pnpm --filter=@modrinth/app run tauri build --config tauri-release.conf.json --verbose --bundles "nsis,updater"' || 'pnpm --filter=@modrinth/app run tauri build --config tauri-dev.conf.json --verbose --bundles "nsis,updater"' }}
132147
Remove-Item -Path signer-client-cert.p12 -ErrorAction SilentlyContinue
133148
if: startsWith(matrix.platform, 'windows')
134149
env:
@@ -138,15 +153,21 @@ jobs:
138153
DIGICERT_ONE_SIGNER_CLIENT_CERTIFICATE_BASE64: ${{ secrets.DIGICERT_ONE_SIGNER_CLIENT_CERTIFICATE_BASE64 }}
139154
DIGICERT_ONE_SIGNER_CLIENT_CERTIFICATE_PASSWORD: ${{ secrets.DIGICERT_ONE_SIGNER_CLIENT_CERTIFICATE_PASSWORD }}
140155

141-
- name: 📤 Upload app bundles
156+
- name: Upload app bundles
142157
uses: actions/upload-artifact@v4
143158
with:
144159
name: App bundle (${{ matrix.artifact-target-name }})
145160
path: |
146161
target/release/bundle/appimage/Modrinth App_*.AppImage*
147162
target/release/bundle/deb/Modrinth App_*.deb*
148163
target/release/bundle/rpm/Modrinth App-*.rpm*
164+
target/release/bundle/appimage/Modrinth App (dev-*)_*.AppImage*
165+
target/release/bundle/deb/Modrinth App (dev-*)_*.deb*
166+
target/release/bundle/rpm/Modrinth App (dev-*)-*.rpm*
149167
target/universal-apple-darwin/release/bundle/macos/Modrinth App.app.tar.gz*
168+
target/universal-apple-darwin/release/bundle/macos/Modrinth App (dev-*)*.app.tar.gz
169+
target/universal-apple-darwin/release/bundle/dmg/Modrinth App (dev-*)*.dmg
150170
target/universal-apple-darwin/release/bundle/dmg/Modrinth App_*.dmg*
151171
target/release/bundle/nsis/Modrinth App_*-setup.exe*
172+
target/release/bundle/nsis/Modrinth App (dev-*)_*-setup.exe*
152173
target/release/bundle/nsis/Modrinth App_*-setup.nsis.zip*

apps/app-frontend/src/components/ui/instance_settings/InstallationSettings.vue

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
Chips,
88
Combobox,
99
defineMessages,
10-
getTagMessageOrDefault,
10+
formatLoader,
1111
injectNotificationManager,
1212
useVIntl,
1313
} from '@modrinth/ui'
@@ -472,10 +472,7 @@ const messages = defineMessages({
472472
<h2 class="m-0 mt-4 text-lg font-extrabold text-contrast block">
473473
{{
474474
formatMessage(messages.loaderVersion, {
475-
loader: (() => {
476-
const message = getTagMessageOrDefault(loader, 'loader')
477-
return typeof message === 'string' ? message : formatMessage(message)
478-
})(),
475+
loader: formatLoader(formatMessage, loader),
479476
})
480477
}}
481478
</h2>
@@ -509,10 +506,7 @@ const messages = defineMessages({
509506
? messages.alreadyInstalledVanilla
510507
: messages.alreadyInstalledModded,
511508
{
512-
platform: (() => {
513-
const message = getTagMessageOrDefault(loader, 'loader')
514-
return typeof message === 'string' ? message : formatMessage(message)
515-
})(),
509+
platform: formatLoader(formatMessage, loader),
516510
version: instance.loader_version,
517511
game_version: gameVersion,
518512
},

apps/app-frontend/src/locales/ar-SA/index.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,9 +470,6 @@
470470
"instance.settings.tabs.window.width.enter": {
471471
"message": "أدخل العرض..."
472472
},
473-
"instance.settings.title": {
474-
"message": "الإعدادات"
475-
},
476473
"instance.worlds.a_minecraft_server": {
477474
"message": "خادم ماين كرافت"
478475
},

apps/app-frontend/src/locales/cs-CZ/index.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@
3333
"message": "Správa zdrojů"
3434
},
3535
"app.update-toast.body": {
36-
"message": "Aplikace Modrinth v{version} je připravena k instalaci! Naninstalujte aktualizaci nyní nebo automaticky po zavření aplikace Modrinth."
36+
"message": "Aplikace Modrinth v{version} je připravena k instalaci! Nainstalujte aktualizaci nyní nebo automaticky po zavření aplikace Modrinth."
3737
},
3838
"app.update-toast.body.download-complete": {
39-
"message": "Stahování aplikace Modrinth v{version} bylo dokončeno. Naninstalujte aktualizaci nyní nebo automaticky po zavření aplikace Modrinth."
39+
"message": "Stahování aplikace Modrinth v{version} bylo dokončeno. Nainstalujte aktualizaci nyní nebo automaticky po zavření aplikace Modrinth."
40+
},
41+
"app.update-toast.body.linux": {
42+
"message": "Modrinth App v{version} je k dispozici. Aktualizujte pomocí svého správce balíčků, abyste získali nejnovější funkce a opravy!"
4043
},
4144
"app.update-toast.body.metered": {
4245
"message": "Aplikace Modrinth v{version} je nyní k dispozici! Protože jste v měřené síti, nebyla stažena automaticky."
@@ -47,6 +50,9 @@
4750
"app.update-toast.download": {
4851
"message": "Stahování ({size})"
4952
},
53+
"app.update-toast.download-page": {
54+
"message": "Stáhnout"
55+
},
5056
"app.update-toast.downloading": {
5157
"message": "Stahování..."
5258
},
@@ -470,9 +476,6 @@
470476
"instance.settings.tabs.window.width.enter": {
471477
"message": "Zadejte šířku..."
472478
},
473-
"instance.settings.title": {
474-
"message": "Nastavení"
475-
},
476479
"instance.worlds.a_minecraft_server": {
477480
"message": "Minecraft Server"
478481
},

apps/app-frontend/src/locales/da-DK/index.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
"message": "Kørte efter spillet lukkes."
262262
},
263263
"instance.settings.tabs.hooks.post-exit.enter": {
264-
"message": "Indskriv post-exit kommando..."
264+
"message": "Indtast post-exit kommando..."
265265
},
266266
"instance.settings.tabs.hooks.pre-launch": {
267267
"message": "Pre-launch"
@@ -270,7 +270,7 @@
270270
"message": "Kørt før en instance bliver kørt."
271271
},
272272
"instance.settings.tabs.hooks.pre-launch.enter": {
273-
"message": "Indskriv pre-launch kommando..."
273+
"message": "Indtast pre-launch kommando..."
274274
},
275275
"instance.settings.tabs.hooks.title": {
276276
"message": "Spille lunch hooks"
@@ -282,7 +282,7 @@
282282
"message": "Wrapper kommando for at køre Minecraft."
283283
},
284284
"instance.settings.tabs.hooks.wrapper.enter": {
285-
"message": "Indskriv wrapper kommando..."
285+
"message": "Indtast wrapper kommando..."
286286
},
287287
"instance.settings.tabs.installation": {
288288
"message": "Installation"
@@ -459,7 +459,7 @@
459459
"message": "Højden af spillevinduet når kørt."
460460
},
461461
"instance.settings.tabs.window.height.enter": {
462-
"message": "Indskriv højde..."
462+
"message": "Indtast højde..."
463463
},
464464
"instance.settings.tabs.window.width": {
465465
"message": "Bredde"
@@ -468,10 +468,7 @@
468468
"message": "Bredden på spille vinduet når kørt."
469469
},
470470
"instance.settings.tabs.window.width.enter": {
471-
"message": "Indskriv bredde..."
472-
},
473-
"instance.settings.title": {
474-
"message": "Indstillinger"
471+
"message": "Indtast bredde..."
475472
},
476473
"instance.worlds.a_minecraft_server": {
477474
"message": "En Minecraft server"

apps/app-frontend/src/locales/de-CH/index.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
"app.update-toast.body.download-complete": {
3939
"message": "Modrinth App v{version} wurde heruntergeladen. Lade die App neu, oder schliesse sie, um zu aktualisieren."
4040
},
41+
"app.update-toast.body.linux": {
42+
"message": "Modrinth App v{version} ist verfügbar. Benutze deinen Paketmanager zum aktualisieren um die neusten Features und Bugfixes zu erhalten!"
43+
},
4144
"app.update-toast.body.metered": {
4245
"message": "Modrinth App v{version} ist jetzt verfügbar! Da du in einem begrenzten Netzwerk bist, haben wir es nicht automatisch heruntergeladen."
4346
},
@@ -47,6 +50,9 @@
4750
"app.update-toast.download": {
4851
"message": "Herunterladen ({size})"
4952
},
53+
"app.update-toast.download-page": {
54+
"message": "Herunterladen"
55+
},
5056
"app.update-toast.downloading": {
5157
"message": "Lade herunter..."
5258
},
@@ -470,9 +476,6 @@
470476
"instance.settings.tabs.window.width.enter": {
471477
"message": "Breite eingeben..."
472478
},
473-
"instance.settings.title": {
474-
"message": "Einstellungen"
475-
},
476479
"instance.worlds.a_minecraft_server": {
477480
"message": "Ä Minecraft-Server"
478481
},

apps/app-frontend/src/locales/de-DE/index.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
"app.update-toast.body.download-complete": {
3939
"message": "Modrinth App v{version} wurde heruntergeladen. Neu laden, um jetzt zu aktualisieren, oder automatisch, wenn du die Modrinth App schließt."
4040
},
41+
"app.update-toast.body.linux": {
42+
"message": "Modrinth App v{version} ist verfügbar. Verwende deinen Paketmanager, um die neuesten Funktionen und Fehlerbehebungen zu installieren!"
43+
},
4144
"app.update-toast.body.metered": {
4245
"message": "Modrinth App v{version} ist jetzt verfügbar! Da du ein getaktetes Netzwerk nutzt, haben wir den Download nicht automatisch gestartet."
4346
},
@@ -47,6 +50,9 @@
4750
"app.update-toast.download": {
4851
"message": "Herunterladen ({size})"
4952
},
53+
"app.update-toast.download-page": {
54+
"message": "Herunterladen"
55+
},
5056
"app.update-toast.downloading": {
5157
"message": "Wird Heruntergeladen..."
5258
},
@@ -470,9 +476,6 @@
470476
"instance.settings.tabs.window.width.enter": {
471477
"message": "Breite eingeben..."
472478
},
473-
"instance.settings.title": {
474-
"message": "Einstellungen"
475-
},
476479
"instance.worlds.a_minecraft_server": {
477480
"message": "Ein Minecraft-Server"
478481
},

apps/app-frontend/src/locales/es-419/index.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
"app.update-toast.body.download-complete": {
3939
"message": "La descarga de la Modrinth App v{version} ha finalizado. Actualiza ahora o automáticamente al cerrar la aplicación Modrinth."
4040
},
41+
"app.update-toast.body.linux": {
42+
"message": "La aplicación Modrinth v{version} ya está disponible. ¡Utiliza tu gestor de paquetes para actualizarla y disfrutar de las últimas funciones y correcciones!"
43+
},
4144
"app.update-toast.body.metered": {
4245
"message": "¡Modrinth App v{version} ya está disponible! Como estás en una red con límite de datos, no se descargó automáticamente."
4346
},
@@ -47,6 +50,9 @@
4750
"app.update-toast.download": {
4851
"message": "Descargar ({size})"
4952
},
53+
"app.update-toast.download-page": {
54+
"message": "Descargar"
55+
},
5056
"app.update-toast.downloading": {
5157
"message": "Descargando..."
5258
},
@@ -470,9 +476,6 @@
470476
"instance.settings.tabs.window.width.enter": {
471477
"message": "Ingresa el ancho..."
472478
},
473-
"instance.settings.title": {
474-
"message": "Configuración"
475-
},
476479
"instance.worlds.a_minecraft_server": {
477480
"message": "Un servidor de Minecraft"
478481
},

0 commit comments

Comments
 (0)