Skip to content

Commit 86745bc

Browse files
authored
Merge pull request #2 from mikecentola/dev
Dev
2 parents 0b59271 + df7aca6 commit 86745bc

File tree

6 files changed

+79
-8
lines changed

6 files changed

+79
-8
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
##############
33
work/*
44

5+
# Node Modules #
6+
################
7+
node_modules/*
8+
package-lock.json
9+
510
# Compiled source #
611
###################
712
*.com

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3-
## [v0.0.1] (https://github.com/mikecentola/cmder-inst/tree/v0.0.1) (2016-08-02)
3+
## [v.0.0.2] https://github.com/mikecentola/cmder-inst/tree/v0.0.2-alpha) (2019-01-08)
4+
5+
- Updated for Cmder v1.3.11
6+
7+
## [v0.0.1] (https://github.com/mikecentola/cmder-inst/tree/v0.0.1-alpha) (2016-08-02)
48

59
- Initial Release

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,43 @@
22

33
Cmder Installer is an install executable that will fetch the latest version of Cmder online, un-pack it, and install it, using the Nullsoft Installer. It has several options including location to install to, windows explorer integration, and shorcuts.
44

5+
56
## About Cmder
67
[Cmder](http://Cmder.net) is a **software package** created out of pure frustration over absence of usable console emulator on Windows. It is based on [ConEmu](https://conemu.github.io/) with *major* config overhaul, comes with a Monokai color scheme, amazing [clink](https://github.com/mridgers/clink) (further enhanced by [clink-completions](https://github.com/vladimir-kotikov/clink-completions)) and a custom prompt layout.
78

89
![Cmder Screenshot](http://i.imgur.com/g1nNf0I.png)
910

11+
Current Cmder Release: *v1.3.11*
12+
1013

1114
## Languages
1215

1316
Right now, Cmder Installer is only set up with English. We will be adding more languages in future releases.
1417

18+
## Building / Compiling
19+
20+
### Prerequisites
21+
22+
- Download [NSIS](http://nsis.sourceforge.net)
23+
- Required NSIS Plugins
24+
- [inetc](https://nsis.sourceforge.io/Inetc_plug-in)
25+
- [ZipDLL](https://nsis.sourceforge.io/ZipDLL_plug-in)
26+
27+
- If using nodejs to build
28+
- Make sure that NSIS is properly installed with `makensis` in your PATH
29+
- Install nodejs / npm
30+
31+
### Build Using NSIS Gui
32+
33+
- Load cmder_inst.nsi into NSIS Gui Application and build
34+
35+
### Build using NodeJS / NPM
36+
37+
- `npm install`
38+
- `npm run build`
39+
40+
41+
1542
## Contributing
1643

1744
For more information on contributing, please refer to our [CONTRIBUTING](https://github.com/mikecentola/cmder-inst/blob/master/CONTRIBUTING.md)
@@ -22,7 +49,7 @@ All software included is bundled with own license
2249

2350
The MIT License (MIT)
2451

25-
Copyright (c) 2016 Mike Centola
52+
Copyright (c) 2019 Mike Centola
2653

2754
Permission is hereby granted, free of charge, to any person obtaining a copy
2855
of this software and associated documentation files (the "Software"), to deal

build.js

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
/* NPM build.js to automate build process with nodejs
2+
*
3+
* Written by Eric Hocking (https://github.com/xaoseric)
4+
* Written by Mike Centola (http://github.com/mikecentola)
5+
*
6+
* Intended for NSIS 3.0
7+
8+
* The MIT License (MIT)
9+
*
10+
* Copyright (c) 2019 Mike Centola, Eric Hocking
11+
*
12+
* Permission is hereby granted, free of charge, to any person obtaining a copy
13+
* of this software and associated documentation files (the "Software"), to deal
14+
* in the Software without restriction, including without limitation the rights
15+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16+
* copies of the Software, and to permit persons to whom the Software is
17+
* furnished to do so, subject to the following conditions:
18+
*
19+
* The above copyright notice and this permission notice shall be included in
20+
* all copies or substantial portions of the Software.
21+
*
22+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
28+
* THE SOFTWARE.
29+
*/
30+
31+
const VERSION = process.env.npm_package_version;
32+
133
const makensis = require('makensis');
234
const axios = require('axios');
335
const path = require('path');
@@ -15,16 +47,18 @@ async function buildRelease(tag) {
1547
let options = {
1648
verbose: 2,
1749
define: {
18-
'CMDER_VERSION': tag
50+
'CMDER_VERSION': tag,
51+
'INSTALLER_VERSION': VERSION
1952
}
2053
};
21-
54+
55+
console.log('Cmder Installer Version: ', VERSION);
2256
console.log('Found latest tag:', tag);
2357
console.log('Building NSIS installer for Cmder', options.define.CMDER_VERSION);
2458

2559
try {
2660
let output = await makensis.compile(path.join(__dirname, 'cmder_inst.nsi'), options);
27-
console.log(`Standard output:\n${output.stdout}`);
61+
console.log(`\n${output.stdout}`);
2862
} catch (output) {
2963
console.error(`Exit Code ${output.status}: ${output.stderr}`);
3064
}

cmder_inst.nsi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
; The MIT License (MIT)
77
;
8-
; Copyright (c) 2016 Mike Centola
8+
; Copyright (c) 2019 Mike Centola
99
;
1010
; Permission is hereby granted, free of charge, to any person obtaining a copy
1111
; of this software and associated documentation files (the "Software"), to deal
@@ -43,7 +43,6 @@
4343
;--------------------------------
4444
; General
4545

46-
!define INSTALLER_VERSION "0.0.1-alpha"
4746
!define APP_NAME "Cmder"
4847
!define CMDER_DLURL "http://github.com/cmderdev/cmder/releases/download/${CMDER_VERSION}/cmder_mini.zip"
4948
!define CMDER_URL "http://cmder.net"

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"name": "cmder_inst",
3-
"version": "1.0.0",
3+
"version": "0.0.2-alpha",
4+
"author": "Mike Centola",
5+
"description": "Cmder Installer",
46
"license": "MIT",
57
"scripts": {
68
"build": "node build.js"

0 commit comments

Comments
 (0)