From 3d5a8b5627fe8eb7b54119e26e667ed3b9bde95b Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Mon, 23 Jan 2023 21:46:08 +1300 Subject: [PATCH] Reduced to a single install file --- install/windows/install-pt1.ps1 | 21 -------------- install/windows/install-pt2.ps1 | 29 ------------------- install/windows/install.ps1 | 51 +++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 50 deletions(-) delete mode 100644 install/windows/install-pt1.ps1 delete mode 100644 install/windows/install-pt2.ps1 create mode 100644 install/windows/install.ps1 diff --git a/install/windows/install-pt1.ps1 b/install/windows/install-pt1.ps1 deleted file mode 100644 index 02530a20d..000000000 --- a/install/windows/install-pt1.ps1 +++ /dev/null @@ -1,21 +0,0 @@ -Write-Host Part One Install -Write-Host ================ -Write-Host Install Chocolatey -Write-Host Instructions from https://chocolate.org/install - -Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) - -Write-Host Install Node JS v16.11.1 - -choco install nodejs --version=16.11.1 -y - -Write-Host Install MongoDB v 4.4.4 - -choco install mongodb --version=4.4.4 -y - -Write-Host Install GIT - -choco install git -y - -Write-Host PART ONE INSTALL COMPLETE -Write-Host Close Powershell completely, open a new shell, and then run Part Two diff --git a/install/windows/install-pt2.ps1 b/install/windows/install-pt2.ps1 deleted file mode 100644 index 29dd67d97..000000000 --- a/install/windows/install-pt2.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -Write-Host Part Two Install -Write-Host ================ -Write-Host Create Homebrewery directory - -mkdir C:\Hombrewery -cd C:\Hombrewery - -Write-Host Download Homebrewery project files - -git clone https://github.com/naturalcrit/homebrewery.git - -Write-Host Install Homebrewery files - -cd homebrewery - -npm install -npm audit fix - -Write-Host Set install type to 'local' - -[System.Environment]::SetEnvironmentVariable('NODE_ENV', 'local') - -Write-Host PART TWO INSTALL COMPLETE -Write-Host To start Homebrewery in the future, open a terminal in the Homebrewery directory and run npm start -Write-Hose ================================================================================================== - -Write-Host Start Homebrewery - -npm start \ No newline at end of file diff --git a/install/windows/install.ps1 b/install/windows/install.ps1 new file mode 100644 index 000000000..9dd0d3f5f --- /dev/null +++ b/install/windows/install.ps1 @@ -0,0 +1,51 @@ +Write-Host Part One Install +Write-Host ================ +Write-Host Install Chocolatey +Write-Host Instructions from https://chocolate.org/install + +Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) + +Write-Host Install Node JS v16.11.1 + +choco install nodejs --version=16.11.1 -y + +Write-Host Install MongoDB v 4.4.4 + +choco install mongodb --version=4.4.4 -y + +Write-Host Install GIT + +choco install git -y + +Write-Hose Refresh Environment + +Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" +Update-SessionEnvironment + +Write-Host Create Homebrewery directory - C:\Homebrewery + +mkdir C:\Hombrewery +cd C:\Hombrewery + +Write-Host Download Homebrewery project files + +git clone https://github.com/naturalcrit/homebrewery.git + +Write-Host Install Homebrewery files + +cd homebrewery + +npm install +npm audit fix + +Write-Host Set install type to 'local' + +[System.Environment]::SetEnvironmentVariable('NODE_ENV', 'local') + +Write-Host INSTALL COMPLETE +Write-Host To start Homebrewery in the future, open a terminal in the Homebrewery directory and run npm start +Write-Hose ================================================================================================== + +Write-Host Start Homebrewery + +npm start \ No newline at end of file