Skip to content

Commit

Permalink
Fix make script
Browse files Browse the repository at this point in the history
Compress-Archive on powershell doens't handle sub folder properly

Signed-off-by: pdulvp <pdulvp@laposte.net>
  • Loading branch information
pdulvp committed May 31, 2020
1 parent 1ffa103 commit c6eddf7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ By clicking on one of them, it will highlight elements on the page and indicates

![Add item](images/issue-on-tab.png)

### Advanced items editor
## Advanced items editor

Items can be edited within an advanced editor:

Expand Down
12 changes: 12 additions & 0 deletions make.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#Requires -Modules @{ ModuleName="Microsoft.PowerShell.Archive"; ModuleVersion="1.2.5" }

$foo = (Get-Content 'manifest.json' | Out-String | ConvertFrom-Json)

Write-Host $foo.version
$name = $foo.version+".zip"
if (!(Test-Path $name -PathType leaf))
{
& "C:\Program Files\7-Zip\7z.exe" -tzip a $name manifest.json background.js _locales content_scripts icons ui
} else {
Write-Host $foo.version exists
}

0 comments on commit c6eddf7

Please sign in to comment.