Skip to content

Commit

Permalink
Fixed flashdevelop
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecole committed Jul 12, 2024
1 parent a8d59af commit 026a38f
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 11 deletions.
3 changes: 2 additions & 1 deletion manual/flashdevelop/flashdevelop.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>flashdevelop</id>
<version>5.3.3.0</version>
<version>5.3.3.20240711</version>
<packageSourceUrl>https://github.com/mikecole/chocolatey-packages</packageSourceUrl>
<title>FlashDevelop</title>
<authors>fdorg</authors>
Expand All @@ -21,6 +21,7 @@
<projectSourceUrl>https://github.com/fdorg/flashdevelop</projectSourceUrl>
<dependencies>
<dependency id="jre8" />
<dependency id="autoit.commandline" version="3.3.14.2" />
</dependencies>
</metadata>
</package>
27 changes: 17 additions & 10 deletions manual/flashdevelop/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
$ErrorActionPreference = 'Stop'

$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$fileFullPath = Join-Path $toolsDir 'FlashDevelop-5.3.3.exe'

$packageArgs = @{
packageName = 'flashdevelop'
unzipLocation = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
fileType = 'exe'
url = 'http://www.flashdevelop.org/downloads/releases/FlashDevelop-5.3.3.exe'
silentArgs = '/S'
validExitCodes= @(0)
softwareName = 'FlashDevelop*'
checksum = '7B3109DD768C0C2EF285A0D4A019AB4E89D58F0229A3B820D72F363E7EE3DE38'
checksumType = 'sha256'
packageName = 'flashdevelop'
fileFullPath = $fileFullPath
url = 'http://www.flashdevelop.org/downloads/releases/FlashDevelop-5.3.3.exe'
checksum = '7B3109DD768C0C2EF285A0D4A019AB4E89D58F0229A3B820D72F363E7EE3DE38'
checksumType = 'sha256'
}

Install-ChocolateyPackage @packageArgs
Get-ChocolateyWebFile @packageArgs

# AutoIt
$installerFile = Join-Path $toolsDir 'flashdevelop.au3'
write-host "Installing `'$fileFullPath`' with AutoIt3 using `'$installerFile`'"
$installArgs = "/c autoit3 `"$installerFile`" `"$fileFullPath`""
Start-ChocolateyProcessAsAdmin -Statements "$installArgs" -ExeToRun 'cmd.exe' -ValidExitCodes @(0)
29 changes: 29 additions & 0 deletions manual/flashdevelop/tools/flashdevelop.au3
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Opt('WinDetectHiddenText', 1)
;Path and filename of the installer executable
$APPTOINSTALL="""" & $CmdLine[1] & """"
Run($APPTOINSTALL)
If @error <> 0 Then
Exit @error
EndIf

$WINDOWNAME="FlashDevelop 5.3.3 Setup"
WinWaitActive($WINDOWNAME)
ControlClick($WINDOWNAME,"","[TEXT:OK]")
WinSetState($WINDOWNAME,"",@SW_HIDE)

WinWaitActive($WINDOWNAME)
ControlClick($WINDOWNAME,"","[TEXT:&Next >]")
WinSetState($WINDOWNAME,"",@SW_HIDE)

WinWaitActive($WINDOWNAME)
ControlClick($WINDOWNAME,"","[TEXT:&Next >]")
WinSetState($WINDOWNAME,"",@SW_HIDE)

WinWaitActive($WINDOWNAME)
ControlClick($WINDOWNAME,"","[TEXT:&Install]")
WinSetState($WINDOWNAME,"",@SW_HIDE)
Sleep(1000)

WinWaitActive($WINDOWNAME)
ControlClick($WINDOWNAME,"","[TEXT:Finish]")
WinSetState($WINDOWNAME,"",@SW_HIDE)

0 comments on commit 026a38f

Please sign in to comment.