qmai-cli-public 0.1.0 → 0.1.2

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.
Files changed (2) hide show
  1. package/npm/install.js +3 -1
  2. package/package.json +1 -1
package/npm/install.js CHANGED
@@ -67,7 +67,7 @@ function getDownloadUrl(archiveName) {
67
67
 
68
68
  const baseUrl =
69
69
  process.env.QMAI_CLI_RELEASE_BASE_URL ||
70
- "https://github.com/madaima/qmai-cli-public/releases/download";
70
+ "https://github.com/feixiao629/qmai-cli-public/releases/download";
71
71
  return `${baseUrl}/v${packageJson.version}/${archiveName}`;
72
72
  }
73
73
 
@@ -142,6 +142,7 @@ async function main() {
142
142
  const archivePath = path.join(distDir, archiveName);
143
143
  const extractedDir = path.join(distDir, baseName);
144
144
  const finalBinaryPath = path.join(distDir, binaryName);
145
+ const shimPath = path.join(packageRoot, "npm", "bin", "qmai.js");
145
146
 
146
147
  await fsp.mkdir(distDir, { recursive: true });
147
148
  await fsp.rm(archivePath, { force: true });
@@ -167,6 +168,7 @@ async function main() {
167
168
  await fsp.copyFile(extractedBinaryPath, finalBinaryPath);
168
169
  if (platform !== "windows") {
169
170
  await fsp.chmod(finalBinaryPath, 0o755);
171
+ await fsp.chmod(shimPath, 0o755);
170
172
  }
171
173
 
172
174
  await fsp.rm(archivePath, { force: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qmai-cli-public",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "qmai-cli npm installer package",
5
5
  "license": "MIT",
6
6
  "repository": {