Compare commits
2 Commits
caleb/fslib-2
...
v3.3.3
| Author | SHA1 | Date | |
|---|---|---|---|
| ae51cc6b87 | |||
| cf23147c9c |
Generated
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nexe",
|
"name": "nexe",
|
||||||
"version": "3.3.1",
|
"version": "3.3.3",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"name": "nexe",
|
"name": "nexe",
|
||||||
"description": "Create a single executable out of your Node.js application",
|
"description": "Create a single executable out of your Node.js application",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"version": "3.3.1",
|
"version": "3.3.3",
|
||||||
"contributors": [
|
"contributors": [
|
||||||
"Craig Condon <craig.j.condon@gmail.com> (http://crcn.io)",
|
"Craig Condon <craig.j.condon@gmail.com> (http://crcn.io)",
|
||||||
"Jared Allard <jaredallard@outlook.com>",
|
"Jared Allard <jaredallard@outlook.com>",
|
||||||
|
|||||||
+2
-2
@@ -112,7 +112,7 @@ export class NexeCompiler {
|
|||||||
this.remoteAsset = options.asset
|
this.remoteAsset = options.asset
|
||||||
} else {
|
} else {
|
||||||
this.remoteAsset =
|
this.remoteAsset =
|
||||||
'https://github.com/nexe/nexe/releases/download/v3.0.0/' + this.target.toString()
|
'https://github.com/nexe/nexe/releases/download/v3.3.3/' + this.target.toString()
|
||||||
}
|
}
|
||||||
this.src = join(this.options.temp, this.target.version)
|
this.src = join(this.options.temp, this.target.version)
|
||||||
this.configureScript = configure + (semverGt(this.target.version, '10.10.0') ? '.py' : '')
|
this.configureScript = configure + (semverGt(this.target.version, '10.10.0') ? '.py' : '')
|
||||||
@@ -237,7 +237,7 @@ export class NexeCompiler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _configureAsync() {
|
private _configureAsync() {
|
||||||
if (isWindows && semverGt(this.target.version, '11.999')) {
|
if (isWindows && semverGt(this.target.version, '10.15.99')) {
|
||||||
return Promise.resolve()
|
return Promise.resolve()
|
||||||
}
|
}
|
||||||
return this._runBuildCommandAsync(this.env.PYTHON || 'python', [
|
return this._runBuildCommandAsync(this.env.PYTHON || 'python', [
|
||||||
|
|||||||
+3
-3
@@ -29,15 +29,15 @@ function isBuildableVersion(version: string) {
|
|||||||
return !versionsToSkip.includes(major) || version === '4.8.4'
|
return !versionsToSkip.includes(major) || version === '4.8.4'
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getLatestGitRelease(options?: any) {
|
export function getV3GitRelease(options?: any) {
|
||||||
return getJson<GitRelease>('https://api.github.com/repos/nexe/nexe/releases/latest', options)
|
return getJson<GitRelease>('https://api.github.com/repos/nexe/nexe/releases/7567580/', options)
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getUnBuiltReleases(options?: any) {
|
export async function getUnBuiltReleases(options?: any) {
|
||||||
const nodeReleases = await getJson<NodeRelease[]>(
|
const nodeReleases = await getJson<NodeRelease[]>(
|
||||||
'https://nodejs.org/download/release/index.json'
|
'https://nodejs.org/download/release/index.json'
|
||||||
)
|
)
|
||||||
const existingVersions = (await getLatestGitRelease(options)).assets.map(x => getTarget(x.name))
|
const existingVersions = (await getV3GitRelease(options)).assets.map(x => getTarget(x.name))
|
||||||
|
|
||||||
const versionMap: { [key: string]: true } = {}
|
const versionMap: { [key: string]: true } = {}
|
||||||
return nodeReleases
|
return nodeReleases
|
||||||
|
|||||||
+3
-3
@@ -1,10 +1,10 @@
|
|||||||
import * as nexe from '../lib/nexe'
|
import * as nexe from '../lib/nexe'
|
||||||
import { getUnBuiltReleases, getLatestGitRelease } from '../lib/releases'
|
import { getUnBuiltReleases, getV3GitRelease } from '../lib/releases'
|
||||||
import { runDockerBuild } from './docker'
|
import { runDockerBuild } from './docker'
|
||||||
import { getTarget, targetsEqual, NexeTarget } from '../lib/target'
|
import { getTarget, targetsEqual, NexeTarget } from '../lib/target'
|
||||||
import { pathExistsAsync, readFileAsync, execFileAsync, semverGt } from '../lib/util'
|
import { pathExistsAsync, readFileAsync, execFileAsync, semverGt } from '../lib/util'
|
||||||
import got = require('got')
|
import got = require('got')
|
||||||
import { cpus } from 'os';
|
import { cpus } from 'os'
|
||||||
|
|
||||||
const env = process.env,
|
const env = process.env,
|
||||||
isPullRequest = env.BUILD_REASON === 'PullRequest',
|
isPullRequest = env.BUILD_REASON === 'PullRequest',
|
||||||
@@ -78,7 +78,7 @@ async function build() {
|
|||||||
stop()
|
stop()
|
||||||
if (await pathExistsAsync(output)) {
|
if (await pathExistsAsync(output)) {
|
||||||
await assertNexeBinary(output)
|
await assertNexeBinary(output)
|
||||||
const gitRelease = await getLatestGitRelease({ headers }),
|
const gitRelease = await getV3GitRelease({ headers }),
|
||||||
unbuiltReleases = await getUnBuiltReleases({ headers })
|
unbuiltReleases = await getUnBuiltReleases({ headers })
|
||||||
if (!unbuiltReleases.some(x => targetsEqual(x, target!))) {
|
if (!unbuiltReleases.some(x => targetsEqual(x, target!))) {
|
||||||
console.log(`${target} already uploaded.`)
|
console.log(`${target} already uploaded.`)
|
||||||
|
|||||||
Reference in New Issue
Block a user