Try to fix macos release

This commit is contained in:
Exidex 2025-02-22 18:57:15 +01:00
parent a0b4dbe8e9
commit b9f4d98408
No known key found for this signature in database
GPG key ID: AC63AA86DD4F2D45
2 changed files with 5 additions and 7 deletions

View file

@ -19,11 +19,7 @@ For changes in `@project-gauntlet/tools` see [separate CHANGELOG.md](https://git
- Global shortcut is now executed on key press, instead of key release
- It is now possible to run commands and open views using CLI command
- Format: `gauntlet run <plugin-id> <entrypoint-id> <action-id>`
- Plugin ID can be found in Settings UI
- Entrypoint ID can be found in:
- For entrypoint types `command` and `view` - in Plugin Manifest or in Settings UI TODO
- For entrypoint type `entrypoint-generator` - in Settings UI TODO
- Action ID can also be found in Plugin Manifest
- Action ID can be found in Plugin Manifest
- Action ID option also accepts special values
- `:primary` - to run primary action of the entrypoint
- `:secondary` - to run secondary action of the entrypoint

View file

@ -6,7 +6,7 @@ import { Octokit } from 'octokit';
import { sync as spawnSync } from "cross-spawn";
import path from "node:path";
import { mkdirSync, readFileSync } from "fs";
import { copyFileSync, writeFileSync } from "node:fs";
import { copyFileSync, rmdirSync, writeFileSync } from "node:fs";
import * as core from '@actions/core';
import { SpawnSyncOptions } from "child_process";
@ -365,6 +365,8 @@ async function packageForMacos(projectRoot: string, arch: string[], profile: str
const version = await readVersion(projectRoot)
rmdirSync(outDirPath)
mkdirSync(outDirPath)
mkdirSync(bundleDir)
mkdirSync(contentsDir)
@ -428,7 +430,7 @@ async function packageForMacos(projectRoot: string, arch: string[], profile: str
outFileName,
bundleDir
], {
cwd: outDirPath
cwd: targetDirPath
})
if (sign) {