Skip to content

Commit

Permalink
PA-Upgrade: Bugfix Windows install path
Browse files Browse the repository at this point in the history
  • Loading branch information
uroesch committed Jul 1, 2020
1 parent f9dc305 commit 3882b1c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.exe
Data
App/AppInfo/pac_installer_log.ini
App/DBeaver
Download
4 changes: 2 additions & 2 deletions App/AppInfo/appinfo.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Freeware=true
CommercialUse=true

[Version]
PackageVersion=7.1.1.1
DisplayVersion=7.1.1-beta5-uroesch
PackageVersion=7.1.1.3
DisplayVersion=7.1.1-beta7-uroesch

[Dependencies]
UsesJava=true
Expand Down
4 changes: 2 additions & 2 deletions App/AppInfo/update.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Version]
Package = 7.1.1.2
Display = 7.1.1-beta6-uroesch
Package = 7.1.1.3
Display = 7.1.1-beta7-uroesch

[Archive]
URL1 = https://dbeaver.io/files/7.1.1/dbeaver-ce-7.1.1-win32.win32.x86_64.zip
Expand Down
15 changes: 6 additions & 9 deletions Other/Update/PA-Upgrade.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Using module ".\PortableAppsCommon.psm1"
# -----------------------------------------------------------------------------
# Globals
# -----------------------------------------------------------------------------
$Version = "0.0.2-alpha"
$Version = "0.0.3-alpha"
$Debug = $True
$SiteUrl = "https://github.com"
$ReleaseUrl = "$SiteUrl/uroesch/$AppName/releases/"
Expand Down Expand Up @@ -79,24 +79,21 @@ Function Invoke-Installer() {
param(
[string] $Command
)
Set-Location "$AppRoot\.."
$PARoot = (Get-Location)
$Arguments = "/AUTOCLOSE=true " +
"/DESTINATION=""$(ConvertTo-WindowsPath $PARoot)\\"""
# Addtional Switches for paf.exe
# /HIDEINSTALLER=true
# /SILENT=true

Switch (Test-Unix) {
$True {
Set-Location "$AppRoot\.."
$PARoot = (Get-Location)
$Arguments = "/SILENT=true /AUTOCLOSE=true /DESTINATION=""$(ConvertTo-WindowsPath $PARoot)\\"""
$Arguments = "$Command $Arguments"
$Command = "wine"
break
}
default {
Set-Location "$AppRoot"
$AppRoot = (Get-Location)
$Arguments = "/AUTOCLOSE=true /DESTINATION=""$(ConvertTo-WindowsPath $AppRoot)"""
}
default { }
}

Debug info "Run PA $Command $Arguments"
Expand Down

0 comments on commit 3882b1c

Please sign in to comment.