Skip to content

Commit 202bb20

Browse files
committed
Merge branch 'main' into truman/auth-for-coppa
2 parents 7c4b4d9 + b666747 commit 202bb20

587 files changed

Lines changed: 43885 additions & 19940 deletions

File tree

Some content is hidden

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

.github/workflows/changelog-comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Changelog Comment
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, reopened]
66
workflow_dispatch:
77
inputs:

.github/workflows/theseus-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,15 @@ on:
2727
options:
2828
- prod
2929
- staging
30+
- prod-with-staging-archon
3031
default: prod
3132
required: false
3233

3334
jobs:
3435
build:
3536
name: Build
37+
env:
38+
VITE_STRIPE_PUBLISHABLE_KEY: pk_live_51JbFxJJygY5LJFfKLVVldb10HlLt24p421OWRsTOWc5sXYFOnFUXWieSc6HD3PHo25ktx8db1WcHr36XGFvZFVUz00V9ixrCs5
3639
strategy:
3740
fail-fast: false
3841
matrix:

.github/workflows/theseus-release.yml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
name: Release Modrinth App
1010
if: >-
1111
github.event.workflow_run.conclusion == 'success' &&
12+
github.event.workflow_run.event == 'push' &&
1213
startsWith(github.event.workflow_run.head_branch, 'v')
1314
runs-on: ubuntu-latest
1415

@@ -23,6 +24,25 @@ jobs:
2324
- name: 📥 Check out code
2425
uses: actions/checkout@v4
2526

27+
- name: 🔒 Verify ref is a tag
28+
env:
29+
GH_TOKEN: ${{ github.token }}
30+
HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
31+
run: |
32+
tag_sha=$(gh api "repos/${{ github.repository }}/git/refs/tags/${VERSION_TAG}" --jq '.object.sha' 2>/dev/null || true)
33+
if [ -z "$tag_sha" ]; then
34+
echo "::error::${VERSION_TAG} is not a git tag in this repo"
35+
exit 1
36+
fi
37+
if [ "$tag_sha" != "$HEAD_SHA" ]; then
38+
commit_sha=$(gh api "repos/${{ github.repository }}/git/tags/${tag_sha}" --jq '.object.sha' 2>/dev/null || echo "$tag_sha")
39+
if [ "$commit_sha" != "$HEAD_SHA" ]; then
40+
echo "::error::Tag ${VERSION_TAG} (${commit_sha}) does not match build head_sha (${HEAD_SHA})"
41+
exit 1
42+
fi
43+
fi
44+
echo "Verified ${VERSION_TAG} is a tag pointing at ${HEAD_SHA}"
45+
2646
- name: 📥 Download Modrinth App artifacts
2747
uses: dawidd6/action-download-artifact@v11
2848
with:
@@ -32,12 +52,32 @@ jobs:
3252
branch: ${{ env.VERSION_TAG }}
3353
use_unzip: true
3454

55+
- name: 📝 Extract app changelog
56+
env:
57+
VERSION: ${{ env.VERSION_TAG }}
58+
run: |
59+
node <<'EOF'
60+
const fs = require('fs');
61+
const version = process.env.VERSION.replace(/^v/, '');
62+
const src = fs.readFileSync('packages/blog/changelog.ts', 'utf8');
63+
const escaped = version.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
64+
const re = new RegExp("product:\\s*'app',\\s*version:\\s*'" + escaped + "',\\s*body:\\s*`([\\s\\S]*?)`,\\s*\\}");
65+
const m = src.match(re);
66+
if (!m) {
67+
console.error(`No app changelog entry found for version ${version}`);
68+
process.exit(1);
69+
}
70+
fs.writeFileSync('release-notes.md', m[1]);
71+
console.log(`Extracted changelog for app ${version}:`);
72+
console.log(m[1]);
73+
EOF
74+
3575
- name: 🛠️ Generate version manifest
3676
run: |
3777
# Reference: https://tauri.app/plugin/updater/#server-support
3878
jq -nc \
3979
--arg versionTag "${VERSION_TAG#v}" \
40-
--arg releaseNotes "See the full changelog at https://modrinth.com/news/changelog" \
80+
--rawfile releaseNotes release-notes.md \
4181
--rawfile macOsAarch64UpdateArtifactSignature "${MACOS_UNIVERSAL_BUNDLE_ARTIFACT_NAME}/universal-apple-darwin/release/bundle/macos/Modrinth App.app.tar.gz.sig" \
4282
--rawfile macOsX64UpdateArtifactSignature "${MACOS_UNIVERSAL_BUNDLE_ARTIFACT_NAME}/universal-apple-darwin/release/bundle/macos/Modrinth App.app.tar.gz.sig" \
4383
--rawfile linuxX64UpdateArtifactSignature "${LINUX_X64_BUNDLE_ARTIFACT_NAME}/release/bundle/appimage/Modrinth App_${VERSION_TAG#v}_amd64.AppImage.tar.gz.sig" \
@@ -120,7 +160,7 @@ jobs:
120160
121161
gh release create "$VERSION_TAG" \
122162
--title "Modrinth App ${VERSION}" \
123-
--notes "See the full changelog at https://modrinth.com/news/changelog" \
163+
--notes-file release-notes.md \
124164
"${WINDOWS_X64_BUNDLE_ARTIFACT_NAME}/release/bundle/nsis/Modrinth App_${VERSION}_x64-setup.exe" \
125165
"${MACOS_UNIVERSAL_BUNDLE_ARTIFACT_NAME}/universal-apple-darwin/release/bundle/dmg/Modrinth App_${VERSION}_universal.dmg" \
126166
"${LINUX_X64_BUNDLE_ARTIFACT_NAME}/release/bundle/appimage/Modrinth App_${VERSION}_amd64.AppImage" \

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,7 @@
2929
},
3030
"[rust]": {
3131
"editor.defaultFormatter": "rust-lang.rust-analyzer"
32-
}
32+
},
33+
"css.lint.unknownAtRules": "ignore",
34+
"scss.lint.unknownAtRules": "ignore"
3335
}

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ Each project may have its own `CLAUDE.md` with detailed instructions:
8686
- Do not create new non-source code files (e.g. Bash scripts, SQL scripts) unless explicitly prompted to
8787
- For Frontend, when doing lint checks, only use the `prepr` commands, do not use `typecheck` or `tsc` etc.
8888
- Types in `@modrinth/utils` are considered highly outdated, if a component needs them, check if you can switch said component to use types from `packages/api-client`
89+
- When provided problems, do not say "I didn't introduce these problems" (shifting the blame/effort) - just fix them.
8990

9091
## Edit Tool - Whitespace Handling (CLAUDE ONLY)
9192

Cargo.lock

Lines changed: 6 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ tauri = "2.8.5"
179179
tauri-build = "2.4.1"
180180
tauri-plugin-deep-link = "2.4.3"
181181
tauri-plugin-dialog = "2.4.0"
182+
tauri-plugin-fs = "2.4.5"
182183
tauri-plugin-http = "2.5.7"
183184
tauri-plugin-opener = "2.5.0"
184185
tauri-plugin-os = "2.3.1"
@@ -207,7 +208,7 @@ url = "2.5.7"
207208
urlencoding = "2.1.3"
208209
utoipa = { version = "5.4.0", features = ["actix_extras", "chrono", "decimal"] }
209210
utoipa-actix-web = { version = "0.1.2" }
210-
utoipa-swagger-ui = { version = "9.0.2", features = ["actix-web", "vendored"] }
211+
utoipa-scalar = { version = "0.3.0", default-features = false }
211212
uuid = "1.18.1"
212213
validator = "0.20.0"
213214
webp = { version = "0.3.1", default-features = false }

apps/app-frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"@tanstack/vue-query": "^5.90.7",
2323
"@tauri-apps/api": "^2.5.0",
2424
"@tauri-apps/plugin-dialog": "^2.2.1",
25+
"@tauri-apps/plugin-fs": "^2.4.5",
2526
"@tauri-apps/plugin-http": "~2.5.7",
2627
"@tauri-apps/plugin-opener": "^2.2.6",
2728
"@tauri-apps/plugin-os": "^2.2.1",
@@ -58,7 +59,7 @@
5859
"sass": "^1.74.1",
5960
"tailwindcss": "^3.4.4",
6061
"typescript": "^5.5.4",
61-
"vite": "^6.0.0",
62+
"vite": "^8.0.0",
6263
"vue-component-type-helpers": "^3.1.8",
6364
"vue-tsc": "^2.1.6"
6465
},

0 commit comments

Comments
 (0)