Skip to content

Commit

Permalink
install python
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoonDorise committed Oct 27, 2024
1 parent a002abb commit b479636
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 28 deletions.
11 changes: 11 additions & 0 deletions functions/appImageInit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ function appImageInit(){
#AutoFixes
mkdir "$env:USERPROFILE/emudeck/feeds" -ErrorAction SilentlyContinue

#Python
if (Get-Command python -ErrorAction SilentlyContinue) {
Write-Output "Python already installed."
} else {
Write-Host "Installing Python, please wait..."
$PYinstaller = "python-3.11.0-amd64.exe"
$url = "https://www.python.org/ftp/python/3.11.0/$PYinstaller"
download $url $PYinstaller
Start-Process "$temp\$PYinstaller" -Wait -Args "/passive InstallAllUsers=1 PrependPath=1 Include_test=0"
}


#CHD
mkdir "$toolsPath\chdconv" -ErrorAction SilentlyContinue
Expand Down
28 changes: 22 additions & 6 deletions install-beta.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -403,17 +403,33 @@ Set-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\Lsa\FIPSAlgorithmP

Write-Host "Installing EmuDeck WE Dependencies" -ForegroundColor white
Write-Host ""
$url_emudeck = getLatestReleaseURLGH 'git-for-windows/git' 'exe' '64-bit'
download $url_emudeck "git_install.exe"
$temp = Join-Path "$env:USERPROFILE" "Downloads"
Write-Host " Installing GIT, please wait..."
$installDir="$env:ProgramFiles\Git\"
Start-Process "$temp\git_install.exe" -Wait -Args "/VERYSILENT /INSTALLDIR=\$installDir"
if (Get-Command git -ErrorAction SilentlyContinue) {
Write-Output "GIT already installed."
} else {
$url_emudeck = getLatestReleaseURLGH 'git-for-windows/git' 'exe' '64-bit'
download $url_emudeck "git_install.exe"

Write-Host " Installing GIT, please wait..."
$installDir="$env:ProgramFiles\Git\"
Start-Process "$temp\git_install.exe" -Wait -Args "/VERYSILENT /INSTALLDIR=\$installDir"
}


if (Get-Command python -ErrorAction SilentlyContinue) {
Write-Output "Python already installed."
} else {
Write-Host "Installing Python, please wait..."
$PYinstaller = "python-3.11.0-amd64.exe"
$url = "https://www.python.org/ftp/python/3.11.0/$PYinstaller"
download $url $PYinstaller
Start-Process "$temp\$PYinstaller" -Wait -Args "/passive InstallAllUsers=1 PrependPath=1 Include_test=0"
}


Write-Host "Downloading EmuDeck..." -ForegroundColor white
Write-Host ""
$url_emudeck = getLatestReleaseURLGH 'EmuDeck/emudeck-electron-beta' 'exe' 'emudeck'
download $url_emudeck "emudeck_install.exe"
$temp = Join-Path "$env:USERPROFILE" "Downloads"
Write-Host " Launching EmuDeck Installer, please wait..."
&"$temp/emudeck_install.exe"
28 changes: 22 additions & 6 deletions install-early.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -403,17 +403,33 @@ Set-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\Lsa\FIPSAlgorithmP

Write-Host "Installing EmuDeck WE Dependencies" -ForegroundColor white
Write-Host ""
$url_emudeck = getLatestReleaseURLGH 'git-for-windows/git' 'exe' '64-bit'
download $url_emudeck "git_install.exe"
$temp = Join-Path "$env:USERPROFILE" "Downloads"
Write-Host " Installing GIT, please wait..."
$installDir="$env:ProgramFiles\Git\"
Start-Process "$temp\git_install.exe" -Wait -Args "/VERYSILENT /INSTALLDIR=\$installDir"
if (Get-Command git -ErrorAction SilentlyContinue) {
Write-Output "GIT already installed."
} else {
$url_emudeck = getLatestReleaseURLGH 'git-for-windows/git' 'exe' '64-bit'
download $url_emudeck "git_install.exe"

Write-Host " Installing GIT, please wait..."
$installDir="$env:ProgramFiles\Git\"
Start-Process "$temp\git_install.exe" -Wait -Args "/VERYSILENT /INSTALLDIR=\$installDir"
}


if (Get-Command python -ErrorAction SilentlyContinue) {
Write-Output "Python already installed."
} else {
Write-Host "Installing Python, please wait..."
$PYinstaller = "python-3.11.0-amd64.exe"
$url = "https://www.python.org/ftp/python/3.11.0/$PYinstaller"
download $url $PYinstaller
Start-Process "$temp\$PYinstaller" -Wait -Args "/passive InstallAllUsers=1 PrependPath=1 Include_test=0"
}


Write-Host "Downloading EmuDeck..." -ForegroundColor white
Write-Host ""
$url_emudeck = getLatestReleaseURLGH 'EmuDeck/emudeck-electron-early' 'exe' 'emudeck'
download $url_emudeck "emudeck_install.exe"
$temp = Join-Path "$env:USERPROFILE" "Downloads"
Write-Host " Launching EmuDeck Installer, please wait..."
&"$temp/emudeck_install.exe"
27 changes: 21 additions & 6 deletions install-unstable.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -403,17 +403,32 @@ Set-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\Lsa\FIPSAlgorithmP

Write-Host "Installing EmuDeck WE Dependencies" -ForegroundColor white
Write-Host ""
$url_emudeck = getLatestReleaseURLGH 'git-for-windows/git' 'exe' '64-bit'
download $url_emudeck "git_install.exe"
$temp = Join-Path "$env:USERPROFILE" "Downloads"
Write-Host " Installing GIT, please wait..."
$installDir="$env:ProgramFiles\Git\"
Start-Process "$temp\git_install.exe" -Wait -Args "/VERYSILENT /INSTALLDIR=\$installDir"
if (Get-Command git -ErrorAction SilentlyContinue) {
Write-Output "GIT already installed."
} else {
$url_emudeck = getLatestReleaseURLGH 'git-for-windows/git' 'exe' '64-bit'
download $url_emudeck "git_install.exe"

Write-Host " Installing GIT, please wait..."
$installDir="$env:ProgramFiles\Git\"
Start-Process "$temp\git_install.exe" -Wait -Args "/VERYSILENT /INSTALLDIR=\$installDir"
}


if (Get-Command python -ErrorAction SilentlyContinue) {
Write-Output "Python already installed."
} else {
Write-Host "Installing Python, please wait..."
$PYinstaller = "python-3.11.0-amd64.exe"
$url = "https://www.python.org/ftp/python/3.11.0/$PYinstaller"
download $url $PYinstaller
Start-Process "$temp\$PYinstaller" -Wait -Args "/passive InstallAllUsers=1 PrependPath=1 Include_test=0"
}

Write-Host "Downloading EmuDeck..." -ForegroundColor white
Write-Host ""
$url_emudeck = getLatestReleaseURLGH 'EmuDeck/emudeck-electron-early-unstable' 'exe' 'emudeck'
download $url_emudeck "emudeck_install.exe"
$temp = Join-Path "$env:USERPROFILE" "Downloads"
Write-Host " Launching EmuDeck Installer, please wait..."
&"$temp/emudeck_install.exe"
30 changes: 24 additions & 6 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -403,17 +403,35 @@ Set-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\Lsa\FIPSAlgorithmP

Write-Host "Installing EmuDeck WE Dependencies" -ForegroundColor white
Write-Host ""
$url_emudeck = getLatestReleaseURLGH 'git-for-windows/git' 'exe' '64-bit'
download $url_emudeck "git_install.exe"
$temp = Join-Path "$env:USERPROFILE" "Downloads"
Write-Host " Installing GIT, please wait..."
$installDir="$env:ProgramFiles\Git\"
Start-Process "$temp\git_install.exe" -Wait -Args "/VERYSILENT /INSTALLDIR=\$installDir"


if (Get-Command git -ErrorAction SilentlyContinue) {
Write-Output "GIT already installed."
} else {
Write-Host "Installing GIT, please wait..."
$url = getLatestReleaseURLGH 'git-for-windows/git' 'exe' '64-bit'
download $url "git_install.exe"
$installDir="$env:ProgramFiles\Git\"
Start-Process "$temp\git_install.exe" -Wait -Args "/VERYSILENT /INSTALLDIR=\$installDir"
}


if (Get-Command python -ErrorAction SilentlyContinue) {
Write-Output "Python already installed."
} else {
Write-Host "Installing Python, please wait..."
$PYinstaller = "python-3.11.0-amd64.exe"
$url = "https://www.python.org/ftp/python/3.11.0/$PYinstaller"
download $url $PYinstaller
Start-Process "$temp\$PYinstaller" -Wait -Args "/passive InstallAllUsers=1 PrependPath=1 Include_test=0"
}



Write-Host "Downloading EmuDeck..." -ForegroundColor white
Write-Host ""
$url_emudeck = getLatestReleaseURLGH 'EmuDeck/emudeck-electron' 'exe' 'emudeck'
download $url_emudeck "emudeck_install.exe"
$temp = Join-Path "$env:USERPROFILE" "Downloads"
Write-Host " Launching EmuDeck Installer, please wait..."
&"$temp/emudeck_install.exe"
4 changes: 0 additions & 4 deletions setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ Start-Sleep -Seconds 1.5

Start-Transcript "$env:USERPROFILE\EmuDeck\logs\EmuDeckSetup.log"

#We install 7zip - Now its on the appimage
#winget install -e --id 7zip.7zip --accept-package-agreements --accept-source-agreements

# JSON Parsing to ps1 file

. "$env:APPDATA\EmuDeck\backend\functions\JSONtoPS1.ps1"
JSONtoPS1

Expand Down

0 comments on commit b479636

Please sign in to comment.