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 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.3`, o bootstrap suporta apenas Windows. O pacote baixa o
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.1`:
18
+ Asset padrao da versao do instalador `0.1.2`:
19
19
 
20
20
  ```text
21
- SOG.Desktop.Setup.0.1.1.exe
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.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.1.exe"
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.3";
13
- const INSTALLER_VERSION = "0.1.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 = "5ada4c2285dbf384300cfafbea6534266b35644b7c7e6e728306c85b419485c8";
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(`SHA256 invalido para ${config.assetName}. Esperado ${config.expectedSha256}, obtido ${actual}.`);
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
- console.log(JSON.stringify(config, null, 2));
169
+ const { expectedSha256, ...publicConfig } = config;
170
+ console.log(JSON.stringify({ ...publicConfig, integrityCheck: 'enabled' }, null, 2));
170
171
  return;
171
172
  }
172
173
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sogtj",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Instalador via npx para o iSOG.",
5
5
  "bin": {
6
6
  "sogtj": "bin/sogtj.js"