git-remote-igit 0.1.1 → 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 +5 -1
- package/npm/lib/install.js +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,11 @@ git clone igit://infinigit.com/username/repository
|
|
|
10
10
|
|
|
11
11
|
Git discovers the executable by its `git-remote-igit` name. The helper resolves
|
|
12
12
|
human-readable repository coordinates through the InfiniGit directory and
|
|
13
|
-
uses the
|
|
13
|
+
uses the bundled `infinigit-pack` bridge to synchronize canister packfiles.
|
|
14
|
+
`infinigit.com` automatically selects the ICP mainnet and production directory;
|
|
15
|
+
no environment variables or Git configuration are required for public clones.
|
|
16
|
+
Explicit configuration remains available for local development and other
|
|
17
|
+
InfiniGit installations.
|
|
14
18
|
|
|
15
19
|
## Releases
|
|
16
20
|
|
package/npm/lib/install.js
CHANGED
|
@@ -8,7 +8,7 @@ const { spawnSync } = require('node:child_process');
|
|
|
8
8
|
const pkg = require('../../package.json');
|
|
9
9
|
const { targetFor } = require('./platform');
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const binaries = ['git-remote-igit', 'infinigit-pack'];
|
|
12
12
|
const target = targetFor();
|
|
13
13
|
const extension = process.platform === 'win32' ? '.zip' : '.tar.gz';
|
|
14
14
|
const asset = `${pkg.name}-v${pkg.version}-${target}${extension}`;
|
|
@@ -33,7 +33,9 @@ async function install() {
|
|
|
33
33
|
const result = spawnSync('tar', ['-xf', archive, '-C', vendor], { stdio: 'inherit' });
|
|
34
34
|
fs.rmSync(archive, { force: true });
|
|
35
35
|
if (result.status !== 0) throw new Error('Could not extract downloaded archive');
|
|
36
|
-
if (process.platform !== 'win32')
|
|
36
|
+
if (process.platform !== 'win32') {
|
|
37
|
+
for (const binary of binaries) fs.chmodSync(path.join(vendor, binary), 0o755);
|
|
38
|
+
}
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
install().catch(error => { console.error(`${pkg.name}: ${error.message}`); process.exitCode = 1; });
|
package/package.json
CHANGED