@neutralinojs/neu
Advanced tools
Comparing version 9.5.0 to 9.5.1
## What's new | ||
### DevOps | ||
- Implement a way to test plugins locally. | ||
### Bugfixes/Improvements | ||
- Use the `decompress` library instead of `unzipper` to fix issues with latest Node.js runtime versions. | ||
- Generate the Mac universal binary with the `neu build` command. | ||
Install the latest (`v9.5.0`) [npm package](https://www.npmjs.com/package/@neutralinojs/neu): | ||
Install the latest (`v9.5.1`) [npm package](https://www.npmjs.com/package/@neutralinojs/neu): | ||
``` | ||
@@ -11,0 +13,0 @@ npm i -g @neutralinojs/neu |
@@ -9,2 +9,9 @@ # Changelog | ||
## v9.5.1 | ||
### Bugfixes/Improvements | ||
- Use the `decompress` library instead of `unzipper` to fix issues with latest Node.js runtime versions. | ||
- Generate the Mac universal binary with the `neu build` command. | ||
## v9.5.0 | ||
@@ -11,0 +18,0 @@ |
{ | ||
"name": "@neutralinojs/neu", | ||
"version": "9.5.0", | ||
"version": "9.5.1", | ||
"description": "neu CLI for Neutralinojs", | ||
@@ -36,2 +36,3 @@ "main": "./bin/neu.js", | ||
"configstore": "^5.0.1", | ||
"decompress": "^4.2.1", | ||
"edit-json-file": "^1.6.2", | ||
@@ -42,3 +43,2 @@ "figlet": "^1.5.0", | ||
"recursive-readdir": "^2.2.2", | ||
"unzipper": "^0.10.11", | ||
"uuid": "^8.3.2", | ||
@@ -45,0 +45,0 @@ "websocket": "^1.0.34" |
@@ -31,4 +31,7 @@ const assert = require('assert'); | ||
binaries.includes('test-app-linux_arm64') && | ||
binaries.includes('test-app-linux_armhf') && | ||
binaries.includes('test-app-linux_x64') && | ||
binaries.includes('test-app-mac_x64') && | ||
binaries.includes('test-app-mac_arm64') && | ||
binaries.includes('test-app-mac_universal') && | ||
binaries.includes('test-app-win_x64.exe')); | ||
@@ -35,0 +38,0 @@ }); |
@@ -20,3 +20,4 @@ module.exports = { | ||
x64: "neutralino-mac_x64", | ||
arm64: "neutralino-mac_arm64" | ||
arm64: "neutralino-mac_arm64", | ||
universal: "neutralino-mac_universal" | ||
}, | ||
@@ -23,0 +24,0 @@ win32: { |
@@ -5,5 +5,5 @@ const fs = require('fs'); | ||
const constants = require('../constants'); | ||
const unzipper = require('unzipper'); | ||
const config = require('./config'); | ||
const utils = require('../utils'); | ||
const decompress = require('decompress'); | ||
@@ -39,3 +39,4 @@ let getBinaryDownloadUrl = () => { | ||
fs.mkdirSync('.tmp', { recursive: true }); | ||
const file = fs.createWriteStream('.tmp/binaries.zip'); | ||
const zipFilename = '.tmp/binaries.zip'; | ||
const file = fs.createWriteStream(zipFilename); | ||
utils.log('Downloading Neutralinojs binaries..'); | ||
@@ -45,8 +46,6 @@ https.get(getBinaryDownloadUrl(), function (response) { | ||
response.on('end', () => { | ||
utils.log('Extracting zip file..'); | ||
fs.createReadStream('.tmp/binaries.zip') | ||
.pipe(unzipper.Extract({ path: '.tmp/' })) | ||
.promise() | ||
.then(() => resolve()) | ||
.catch((e) => reject(e)); | ||
utils.log('Extracting zip file...'); | ||
decompress(zipFilename, '.tmp/') | ||
.then(() => resolve()) | ||
.catch((e) => reject(e)); | ||
}); | ||
@@ -76,16 +75,15 @@ }); | ||
fs.mkdirSync('.tmp', { recursive: true }); | ||
const file = fs.createWriteStream('.tmp/template.zip'); | ||
const zipFilename = '.tmp/template.zip'; | ||
const file = fs.createWriteStream(zipFilename); | ||
https.get(templateUrl, function (response) { | ||
response.pipe(file); | ||
response.on('end', () => { | ||
utils.log('Extracting template zip file..'); | ||
fs.createReadStream('.tmp/template.zip') | ||
.pipe(unzipper.Extract({ path: '.tmp/' })) | ||
.promise() | ||
.then(() => { | ||
fse.copySync(`.tmp/${getRepoNameFromTemplate(template)}-main`, '.'); | ||
utils.clearCache(); | ||
resolve(); | ||
}) | ||
.catch((e) => reject(e)); | ||
utils.log('Extracting template zip file...'); | ||
decompress(zipFilename, '.tmp/') | ||
.then(() => { | ||
fse.copySync(`.tmp/${getRepoNameFromTemplate(template)}-main`, '.'); | ||
utils.clearCache(); | ||
resolve(); | ||
}) | ||
.catch((e) => reject(e)); | ||
}); | ||
@@ -92,0 +90,0 @@ }); |
Sorry, the diff of this file is not supported yet
186641
2808
+ Addeddecompress@^4.2.1
+ Addedbl@1.2.3(transitive)
+ Addedbuffer-alloc@1.2.0(transitive)
+ Addedbuffer-alloc-unsafe@1.1.0(transitive)
+ Addedbuffer-fill@1.0.0(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addeddecompress@4.2.1(transitive)
+ Addeddecompress-tar@4.1.1(transitive)
+ Addeddecompress-tarbz2@4.1.1(transitive)
+ Addeddecompress-targz@4.1.1(transitive)
+ Addeddecompress-unzip@4.0.1(transitive)
+ Addedfd-slicer@1.1.0(transitive)
+ Addedfile-type@3.9.05.2.06.2.0(transitive)
+ Addedget-stream@2.3.1(transitive)
+ Addedis-natural-number@4.0.1(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedmake-dir@1.3.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedpend@1.2.0(transitive)
+ Addedpify@2.3.03.0.0(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedseek-bzip@1.0.6(transitive)
+ Addedstrip-dirs@2.1.0(transitive)
+ Addedtar-stream@1.6.2(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedto-buffer@1.1.1(transitive)
+ Addedunbzip2-stream@1.4.3(transitive)
+ Addedxtend@4.0.2(transitive)
+ Addedyauzl@2.10.0(transitive)
- Removedunzipper@^0.10.11
- Removedbig-integer@1.6.52(transitive)
- Removedbinary@0.3.0(transitive)
- Removedbluebird@3.4.7(transitive)
- Removedbuffer-indexof-polyfill@1.0.2(transitive)
- Removedbuffers@0.1.1(transitive)
- Removedchainsaw@0.1.0(transitive)
- Removedduplexer2@0.1.4(transitive)
- Removedfstream@1.0.12(transitive)
- Removedlistenercount@1.0.1(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedtraverse@0.3.9(transitive)
- Removedunzipper@0.10.14(transitive)