-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update powershell scripts to match bash build scripts (#202)
- Loading branch information
1 parent
a5e5cf4
commit 5313dc2
Showing
3 changed files
with
91 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
param( | ||
[string]$browser | ||
) | ||
|
||
$currPwd = Get-Location | ||
|
||
Set-Location $currPwd | ||
Write-Output "Moved to scripts dir" | ||
|
||
if ($browser -eq "chrome") | ||
{ | ||
Write-Output "Build chrome extension" | ||
} else | ||
{ | ||
Write-Output "Build firefox extension" | ||
} | ||
|
||
|
||
if (Test-Path -path "../build") | ||
{ | ||
$null = Remove-Item "../build" -recurse -erroraction stop | ||
Write-Output "Removed build dir" | ||
} | ||
|
||
mkdir ../build | ||
Write-Output "Created build dir" | ||
|
||
Copy-Item "../src/*" -destination "../build" -recurse -erroraction stop | ||
Write-Output "Copied Sources" | ||
|
||
Set-Location .. | ||
#build-vuecomp | ||
& "$PSScriptRoot\build-vue-comp.ps1" | ||
Write-Output "Built vue components" | ||
|
||
Set-Location scripts | ||
if ($browser -eq "chrome") | ||
{ | ||
Copy-Item "../addon/chrome/*" -destination "../build" -recurse -erroraction stop | ||
} else | ||
{ | ||
Copy-Item "../addon/firefox/*" -destination "../build" -recurse -erroraction stop | ||
} | ||
Write-Output "Copied webextension files" | ||
|
||
Write-Output "Done!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters