Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: added channel
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 7, 2018
1 parent 8d9fdc7 commit 2d0d2c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const debug = Debug()
export interface IConfig {
name: string
version: string
channel?: string
pjson: PJSON.CLI
/**
* process.arch
Expand Down Expand Up @@ -118,6 +119,7 @@ export class Config implements IConfig {
_base = `${_pjson.name}@${_pjson.version}`
name!: string
version!: string
channel?: string
root!: string
arch!: ArchTypes
bin!: string
Expand Down Expand Up @@ -147,6 +149,7 @@ export class Config implements IConfig {
this.pjson = plugin.pjson
this.name = this.pjson.name
this.version = this.pjson.version
this.channel = this.pjson.channel

this.arch = (os.arch() === 'ia32' ? 'x86' : os.arch() as any)
this.platform = os.platform() as any
Expand Down

0 comments on commit 2d0d2c3

Please sign in to comment.