From 4bb64a535f34e71e354f3716190f0233f7588fd4 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Mon, 23 Jan 2023 21:00:00 +1300 Subject: [PATCH] Split install script into two parts --- .../windows/{install.ps1 => install-pt1.ps1} | 31 +++---------------- install/windows/install-pt2.ps1 | 25 +++++++++++++++ 2 files changed, 29 insertions(+), 27 deletions(-) rename install/windows/{install.ps1 => install-pt1.ps1} (55%) create mode 100644 install/windows/install-pt2.ps1 diff --git a/install/windows/install.ps1 b/install/windows/install-pt1.ps1 similarity index 55% rename from install/windows/install.ps1 rename to install/windows/install-pt1.ps1 index 359933ce5..3d6247163 100644 --- a/install/windows/install.ps1 +++ b/install/windows/install-pt1.ps1 @@ -1,3 +1,5 @@ +Write-Host Part One Install +Write-Host ================ Write-Host Install Chocolatey Write-Host Instructions from https://chocolate.org/install @@ -15,30 +17,5 @@ Write-Host Install GIT choco install git -y -Write-Host Refresh Environment - -refreshenv - -Write-Host Create 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 Start Homebrewery - -npm start \ No newline at end of file +Write-Host PART ONE INSTALL +Write-Host Close Powershell completely, open a new window, and then run Part Two diff --git a/install/windows/install-pt2.ps1 b/install/windows/install-pt2.ps1 new file mode 100644 index 000000000..7d7d8b8bc --- /dev/null +++ b/install/windows/install-pt2.ps1 @@ -0,0 +1,25 @@ +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 Start Homebrewery + +npm start \ No newline at end of file