sogtj 0.1.3 → 0.1.5
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 +5 -5
- package/bin/sogtj.js +6 -5
- 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.5`, 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
|
|
|
@@ -15,15 +15,15 @@ entrega o usuario ao instalador oficial. Depois da instalacao, o aplicativo
|
|
|
15
15
|
iSOG/SOG Desktop instalado inicia a stack local e abre o dashboard no navegador
|
|
16
16
|
padrao do Windows, que pode ser o Chrome.
|
|
17
17
|
|
|
18
|
-
Asset padrao da versao do instalador `0.1.
|
|
18
|
+
Asset padrao da versao do instalador `0.1.2`:
|
|
19
19
|
|
|
20
20
|
```text
|
|
21
|
-
SOG.Desktop.Setup.0.1.
|
|
21
|
+
SOG.Desktop.Setup.0.1.2.exe
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Publicacao
|
|
25
25
|
|
|
26
|
-
1. Publique o instalador Windows no R2 em `sog.carlosguimaraes.us/sogtj/v0.1.
|
|
26
|
+
1. Publique o instalador Windows no R2 em `sog.carlosguimaraes.us/sogtj/v0.1.2/`.
|
|
27
27
|
2. Atualize a verificacao de integridade interna do bootstrap.
|
|
28
28
|
3. Publique este pacote no npm:
|
|
29
29
|
|
|
@@ -35,6 +35,6 @@ npm publish --access public
|
|
|
35
35
|
## Teste com URL direta
|
|
36
36
|
|
|
37
37
|
```powershell
|
|
38
|
-
$env:ISOG_ASSET_URL="https://exemplo.local/SOG.Desktop.Setup.0.1.
|
|
38
|
+
$env:ISOG_ASSET_URL="https://exemplo.local/SOG.Desktop.Setup.0.1.2.exe"
|
|
39
39
|
npx -y sogtj --verify-only
|
|
40
40
|
```
|
package/bin/sogtj.js
CHANGED
|
@@ -9,12 +9,12 @@ 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.
|
|
13
|
-
const INSTALLER_VERSION = "0.1.
|
|
12
|
+
const PACKAGE_VERSION = "0.1.5";
|
|
13
|
+
const INSTALLER_VERSION = "0.1.2";
|
|
14
14
|
const DISPLAY_NAME = "iSOG";
|
|
15
15
|
const DOWNLOAD_BASE = "https://sog.carlosguimaraes.us/sogtj";
|
|
16
16
|
const DEFAULT_ASSET_NAME = `SOG.Desktop.Setup.${INSTALLER_VERSION}.exe`;
|
|
17
|
-
const DEFAULT_SHA256 = "
|
|
17
|
+
const DEFAULT_SHA256 = "905703df3757541cb973d4e8ad2bac1133f31e2ff1b061c0c7d4afff2dce3cb7";
|
|
18
18
|
|
|
19
19
|
function usage() {
|
|
20
20
|
console.log(`
|
|
@@ -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
|
|