Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit d69ff1e

Browse files
authored
Merge pull request #1569 from TriliumNext/feature/fix_release
fix(release): appdmg not found
2 parents 11dc52f + 2d3a1e9 commit d69ff1e

File tree

4 files changed

+327
-20
lines changed

4 files changed

+327
-20
lines changed

.github/workflows/nightly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
pull_request:
1212
paths:
1313
- .github/actions/build-electron/*
14+
- forge.config.cjs
1415
env:
1516
GITHUB_UPLOAD_URL: https://uploads.github.com/repos/TriliumNext/Notes/releases/179589950/assets{?name,label}
1617
GITHUB_RELEASE_ID: 179589950

forge.config.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ module.exports = {
156156
hooks: {
157157
postMake(_, makeResults) {
158158
const outputDir = path.join(__dirname, "..", "upload");
159-
fs.mkdirp(outputDir);
159+
fs.mkdirpSync(outputDir);
160160
for (const makeResult of makeResults) {
161161
for (const artifactPath of makeResult.artifacts) {
162162
// Ignore certain artifacts.
@@ -169,12 +169,12 @@ module.exports = {
169169
// Override the extension for the CI.
170170
const { TRILIUM_ARTIFACT_NAME_HINT } = process.env;
171171
if (TRILIUM_ARTIFACT_NAME_HINT) {
172-
fileName = TRILIUM_ARTIFACT_NAME_HINT + extension;
172+
fileName = TRILIUM_ARTIFACT_NAME_HINT.replaceAll("/", "-") + extension;
173173
}
174174

175175
const outputPath = path.join(outputDir, fileName);
176176
console.log(`[Artifact] ${artifactPath} -> ${outputPath}`);
177-
fs.copyFile(artifactPath, outputPath);
177+
fs.copyFileSync(artifactPath, outputPath);
178178
}
179179
}
180180
}

0 commit comments

Comments
 (0)