Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
python and vs code are now installed per-user
  • Loading branch information
Rexxt authored Sep 20, 2023
1 parent bda63af commit e3efdf6
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 6 deletions.
Binary file modified Install mipy for Windows (x64).lnk
Binary file not shown.
17 changes: 17 additions & 0 deletions ascii-art.ans
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
                                       
                                       
                                       
             ###############           
          #####################        
        #########################      
       ###########################     
      #############################    
      #############################    
      #############################    
       ###########################     
        #########################      
          #####################        
             ###############           
                                       
                                       

Binary file added icon.ico
Binary file not shown.
8 changes: 6 additions & 2 deletions windows-fr.ps1
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
Clear-Host

$version="1.0.1"
$version="1.0.2"
Clear-Host
Write-Host -BackgroundColor DarkBlue "Installateur de la distribution mipy $version"
Get-Content .\ascii-art.ans
Start-Sleep -Seconds 2

Clear-Host
Write-Host -BackgroundColor DarkBlue "Installateur de la distribution mipy $version"
Write-Output "Voici tous les modules gérés par la distribution."
Write-Output "Les modules Langage et Editeur sont nécessaires. Le reste est optionel et vous sera demandé."
Get-Content .\doc\DOWNLOADS.txt
Pause

Function Test-CommandExists
{
Param ($command)
Expand Down
15 changes: 11 additions & 4 deletions windows.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
Clear-Host

$version="1.0.1"
$version="1.0.2"

Clear-Host
Write-Host -BackgroundColor DarkBlue "mipy $version distribution installer"
Get-Content .\ascii-art.ans
Start-Sleep -Seconds 2

Clear-Host
Write-Host -BackgroundColor DarkBlue "mipy $version distribution installer"
Write-Output "Here is every module that is available in the distribution."
Write-Output "The Language and Editor modules are mandatory. Every other module is optional and will be prompted to you."
Expand All @@ -22,15 +28,15 @@ function pyinstall() {
Write-Host -ForegroundColor Blue "Installing Python 3.11.5"
$installer_url="https://www.python.org/ftp/python/3.11.5/python-3.11.5-amd64.exe"
Invoke-WebRequest -URI $installer_url -OutFile "tmp/python_installer.exe"
tmp/python_installer.exe /passive InstallAllUsers=1 AppendPath=1
tmp/python_installer.exe /passive AppendPath=1
Pause
}

function vscinstall() {
Write-Host -ForegroundColor Blue "Installing Visual Studio Code"
$installer_url="https://code.visualstudio.com/sha/download?build=stable&os=win32-x64-user"
Invoke-WebRequest -URI $installer_url -OutFile "tmp/vscode_installer.exe"
tmp/vscode_installer.exe /SILENT /ALLUSERS /NOCANCEL
tmp/vscode_installer.exe /SILENT /NOCANCEL
}

Clear-Host
Expand Down Expand Up @@ -86,10 +92,11 @@ If($execute -eq $true) {
Clear-Host
Write-Host -BackgroundColor DarkBlue "mipy $version > Language > pip libraries > $selected_module"
If(Test-Path "pip/$selected_module") {
Write-Host -ForegroundColor Green "Libraries to install:"
Write-Host -ForegroundColor Blue "Libraries to install:"
Get-Content "pip/$selected_module"
Write-Output ""
py -m pip install -r "pip/$selected_module"
Write-Host -ForegroundColor Green "Module $selected_module installed!"
} else {
Write-Host -ForegroundColor Red "Module $selected_module wasn't found. You can always install individual libraries later."
}
Expand Down

0 comments on commit e3efdf6

Please sign in to comment.