Skip to content

Commit

Permalink
fix: PATH update for older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
alkoleft committed Nov 18, 2024
1 parent a899e22 commit ed5c548
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
9 changes: 8 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,17 @@ export async function run(): Promise<void> {

if (!installerRestored) {
await installer.download()
core.info('Installer downloaded')
if (useCacheDistr) {
await installer.saveInstallerCache()
core.info('Installer cached')
}
}

await installer.install()
core.info('Installing success')
await installer.updatePath()
core.info('Env variable `PATH` updated')

if (useCache) {
await installer.saveInstalledCache()
Expand Down
4 changes: 3 additions & 1 deletion src/tools/platform83.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ export class Platform83 extends OnecTool {
getCacheDirs(): string[] {
if (this.isWindows()) {
return ['C:/Program Files/1cv8']
} else if (this.isLinux()) {
} else if (this.isLinux() && this.useNewInstaller()) {
return ['/opt/1cv8']
} else if (this.isLinux()) {
return ['/opt/1C/v8.3']
} else if (this.isMac()) {
return ['/opt/1cv8'] // /Applications/1cv8.localized/8.3.21.1644/ but only .app
} else {
Expand Down

0 comments on commit ed5c548

Please sign in to comment.