@algochad/archcoder 2.0.2 → 2.0.3

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/dist/index.html CHANGED
@@ -439,7 +439,7 @@
439
439
  pointer-events: none;
440
440
  }
441
441
  </style>
442
- <script type="module" crossorigin src="/assets/index-o_d2wtWC.js"></script>
442
+ <script type="module" crossorigin src="/assets/index-DKc7ZmSW.js"></script>
443
443
  <link rel="modulepreload" crossorigin href="/assets/vendor-.bun-HTKwyaEM.js">
444
444
  <link rel="stylesheet" crossorigin href="/assets/vendor--DbVqbJpV.css">
445
445
  <link rel="stylesheet" crossorigin href="/assets/index-CtCEGYrr.css">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algochad/archcoder",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./server/index.js",
@@ -99,6 +99,13 @@ async function runCommand(command, args, options = {}) {
99
99
  }
100
100
 
101
101
  async function installLinuxIntegration(artifactPath, version, options) {
102
+ const isDeb = artifactPath.endsWith('.deb');
103
+
104
+ if (isDeb) {
105
+ await runCommand('sudo', ['dpkg', '-i', artifactPath], options);
106
+ return { appPath: artifactPath };
107
+ }
108
+
102
109
  const installDir = getInstallDir();
103
110
  fs.mkdirSync(installDir, { recursive: true });
104
111
 
@@ -49,8 +49,8 @@ function getElectronArtifactName(version, target) {
49
49
  }
50
50
 
51
51
  if (isLinux) {
52
- const arch = isArm ? 'arm64' : 'x86_64';
53
- return `ArchCoder-${version}-${arch}.AppImage`;
52
+ const arch = isArm ? 'arm64' : 'amd64';
53
+ return `ArchCoder-${version}-${arch}.deb`;
54
54
  }
55
55
 
56
56
  throw new Error(`Unknown target: ${target}`);