Skip to content

Instantly share code, notes, and snippets.

View Pushpavel's full-sized avatar
😃
Brainstorming

Pushpavel Pushpavel

😃
Brainstorming
View GitHub Profile
@Pushpavel
Pushpavel / tauri-deps.ps1
Last active May 23, 2022 11:43
This script installs the required dependencies to build a tauri app using chocolatey package manager in windows machines
##### Installs Dependencies required by Tauri using chocolatey package manager #####
# Run the below command in powershell before running this script
# Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
# check for elavated permissions (admin)
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Write-Output "Run as Admin"; exit }
# installs chocolatey (package manager)
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))