mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-27 12:26:29 -08:00
fix workflow things
This commit is contained in:
1 parent
b6410dfae9
commit
75dba2d7ed
3 files changed
+9
-4
No files matched your search
@@ -3,6 +3,8 @@
|
||||
|
||||
import { execSync } from 'node:child_process';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { resolve } from 'node:path';
|
||||
import { pathToFileURL } from 'node:url';
|
||||
|
||||
export function computeNightlyVersion(baseVersion, timestamp = new Date()) {
|
||||
const match = /^(\d+)\.(\d+)\.(\d+)$/.exec(baseVersion);
|
||||
@@ -84,8 +86,7 @@ export function resolveReleaseMeta({
|
||||
};
|
||||
}
|
||||
|
||||
const isMain =
|
||||
process.argv[1] && import.meta.url === `file:///${process.argv[1].replace(/\\/g, '/')}`;
|
||||
const isMain = process.argv[1] && import.meta.url === pathToFileURL(resolve(process.argv[1])).href;
|
||||
if (isMain) {
|
||||
try {
|
||||
const meta = resolveReleaseMeta({
|
||||
|
||||
Reference in new issue
Block a user