sogtj 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/sogtj.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Pacote npm pequeno para iniciar a instalacao do iSOG pelo comando:
|
|
|
6
6
|
npx -y sogtj
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Na versao `0.1.
|
|
9
|
+
Na versao `0.1.4`, o bootstrap suporta apenas Windows. O pacote baixa o
|
|
10
10
|
instalador publicado no R2, confere a integridade automaticamente e abre o
|
|
11
11
|
instalador.
|
|
12
12
|
|
package/bin/sogtj.js
CHANGED
|
@@ -9,7 +9,7 @@ const os = require("node:os");
|
|
|
9
9
|
const path = require("node:path");
|
|
10
10
|
const { pipeline } = require("node:stream/promises");
|
|
11
11
|
|
|
12
|
-
const PACKAGE_VERSION = "0.1.
|
|
12
|
+
const PACKAGE_VERSION = "0.1.4";
|
|
13
13
|
const INSTALLER_VERSION = "0.1.1";
|
|
14
14
|
const DISPLAY_NAME = "iSOG";
|
|
15
15
|
const DOWNLOAD_BASE = "https://sog.carlosguimaraes.us/sogtj";
|
|
@@ -139,7 +139,7 @@ async function ensureInstaller(config) {
|
|
|
139
139
|
const actual = await sha256(config.installerPath);
|
|
140
140
|
if (actual.toLowerCase() !== config.expectedSha256.toLowerCase()) {
|
|
141
141
|
await fs.promises.rm(config.installerPath, { force: true });
|
|
142
|
-
throw new Error(
|
|
142
|
+
throw new Error('O instalador baixado nao passou na verificacao de integridade. Tente executar o comando novamente.');
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
}
|
|
@@ -166,7 +166,8 @@ async function main() {
|
|
|
166
166
|
const config = getInstallConfig();
|
|
167
167
|
|
|
168
168
|
if (args.dryRun) {
|
|
169
|
-
|
|
169
|
+
const { expectedSha256, ...publicConfig } = config;
|
|
170
|
+
console.log(JSON.stringify({ ...publicConfig, integrityCheck: 'enabled' }, null, 2));
|
|
170
171
|
return;
|
|
171
172
|
}
|
|
172
173
|
|