Compare commits

..

1 Commits

Author SHA1 Message Date
calebboyd ae51cc6b87 fix: set explicit release 2020-06-21 20:16:45 -05:00
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "nexe", "name": "nexe",
"version": "3.3.2", "version": "3.3.3",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
+1 -1
View File
@@ -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.2", "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>",
+1 -1
View File
@@ -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' : '')
+3 -3
View File
@@ -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
+2 -2
View File
@@ -1,5 +1,5 @@
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'
@@ -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.`)