mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-31 17:57:43 +01:00
adding an experimental workflow to test the windows environment on for the ResourceHacker
This commit is contained in:
parent
184f46cd8b
commit
2b44a3897d
33
.github/workflows/build.yml
vendored
33
.github/workflows/build.yml
vendored
@ -1,13 +1,15 @@
|
||||
name: build & publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- 'l10n_master'
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
workflow_dispatch:
|
||||
|
||||
#on:
|
||||
# push:
|
||||
# branches-ignore:
|
||||
# - 'l10n_master'
|
||||
# release:
|
||||
# types:
|
||||
# - published
|
||||
|
||||
jobs:
|
||||
cloc:
|
||||
@ -22,8 +24,7 @@ jobs:
|
||||
sudo apt -y install cloc
|
||||
|
||||
- name: Print lines of code
|
||||
run: cloc --include-lang TypeScript,JavaScript,HTML,Sass,CSS --vcs git
|
||||
|
||||
run: cloc --include-lang TypeScript,JavaScript --vcs git
|
||||
|
||||
build:
|
||||
name: Build CLI
|
||||
@ -40,12 +41,18 @@ jobs:
|
||||
with:
|
||||
node-version: '10.x'
|
||||
|
||||
- name: Set PACKAGE_VERSION
|
||||
- name: Set PACKAGE_VERSION & VER_INFO
|
||||
run: |
|
||||
$env:pkgVersion = (Get-Content -Raw -Path .\package.json | ConvertFrom-Json).version
|
||||
echo "PACKAGE_VERSION=$env:pkgVersion" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
||||
echo "version: $env:pkgVersion"
|
||||
|
||||
if(Test-Path -Path $env:WIN_PKG) {
|
||||
echo "VER_INFO=true" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
||||
}
|
||||
env:
|
||||
WIN_PKG: C:\Users\appveyor\.pkg-cache\v2.5\fetched-v10.4.1-win-x64
|
||||
|
||||
- name: test setting env var
|
||||
run: |
|
||||
echo "version: $env:PACKAGE_VERSION"
|
||||
@ -54,6 +61,14 @@ jobs:
|
||||
Throw "test env failed."
|
||||
}
|
||||
|
||||
- name:
|
||||
|
||||
- name: ResourceHacker
|
||||
run: |
|
||||
if defined VER_INFO ResourceHacker -open %WIN_PKG% -save %WIN_PKG% -action delete -mask ICONGROUP,1,
|
||||
if defined VER_INFO ResourceHacker -open version-info.rc -save version-info.res -action compile
|
||||
if defined VER_INFO ResourceHacker -open %WIN_PKG% -save %WIN_PKG% -action addoverwrite -resource version-info.res
|
||||
|
||||
- name: Install
|
||||
run: npm install
|
||||
|
||||
|
11
.github/workflows/exp.yml
vendored
Normal file
11
.github/workflows/exp.yml
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
name: Windows Environment Exploration
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
exp:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Test pkg
|
||||
run: pkg --help
|
Loading…
Reference in New Issue
Block a user