Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Setup scripts
  • Loading branch information
assimbly authored Feb 12, 2021
1 parent 67ad3bb commit 7a079b6
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions setup/install_assimbly.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Write-Output "Start Assimbly installation"

Write-Output "Step 1: Install Scoop"
if (-not (Test-Path "$home\scoop\")) {
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
}

Write-Output "Step 2: Install Java"
scoop bucket add java
scoop install adopt11-hotspot

Write-Output "Step 3: Download Assimbly"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$DownloadUrl = Invoke-RestMethod -uri https://api.github.com/repos/assimbly/gateway/releases/latest | select -ExpandProperty assets | ? { $_.name.Contains("jar")} | select -expand browser_download_url
Invoke-WebRequest $DownloadUrl -OutFile "$HOME/assimbly/gateway.jar"

Write-Output "Step 4: Create start script"
New-Item -Path "$home\assimbly\" -Name "start_assimbly.ps1" -ItemType File -Value 'java -jar gateway.jar' -Force
cd "$home\assimbly"

Write-Output ""
Write-Output "Installation finished!"
Write-Output ""
Write-Output "Start Assimbly with the command: .\start_assimbly.ps1"
24 changes: 24 additions & 0 deletions setup/setup_assimbly_dev_environment.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Write-Output "Setup Assimbly dev environment"

Write-Output "Step 1: Install Scoop"
if (-not (Test-Path "$home\scoop\")) {
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
}

Write-Output "Step 2: Install Java"
scoop bucket add java
scoop install adopt11-hotspot

Write-Output "Step 3: Install NodeJS"
scoop bucket add extras
scoop install nodejs nvm

Write-Output "Step 3: Install Yarn"
scoop install yarn

Write-Output "Step 4: Install Git"
scoop install git
scoop install maven

Write-Output ""
Write-Output "Setup finished!"

0 comments on commit 7a079b6

Please sign in to comment.