mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 13:16:53 +00:00
Other: grab version number from top-level Makefile.
Other: PowerShell script uses $MyInvocation.MyCommand.Path instead of $PSScriptRoot
This commit is contained in:
2
utils/bridge_app_version.ps1
Normal file
2
utils/bridge_app_version.ps1
Normal file
@ -0,0 +1,2 @@
|
||||
Select-String -Path (Join-Path $PSScriptRoot "../Makefile") -Pattern "^BRIDGE_APP_VERSION\?=(\S*)" |
|
||||
ForEach-Object {$_.Matches} | ForEach-Object { $_.Groups[1].Value }
|
||||
2
utils/bridge_app_version.sh
Executable file
2
utils/bridge_app_version.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
sed -n "s/BRIDGE_APP_VERSION?=\(\S*\)/\1/p" "$(dirname $0)/../Makefile"
|
||||
Reference in New Issue
Block a user