From 2b44a3897d4595da6391c62a3141614d8f5abdde Mon Sep 17 00:00:00 2001 From: Joseph Flinn Date: Wed, 6 Jan 2021 19:26:25 +0000 Subject: [PATCH] adding an experimental workflow to test the windows environment on for the ResourceHacker --- .github/workflows/build.yml | 33 ++++++++++++++++++++++++--------- .github/workflows/exp.yml | 11 +++++++++++ 2 files changed, 35 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/exp.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9b4579638e..77d4ee9f14 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/exp.yml b/.github/workflows/exp.yml new file mode 100644 index 0000000000..1f6e1244ea --- /dev/null +++ b/.github/workflows/exp.yml @@ -0,0 +1,11 @@ +name: Windows Environment Exploration + +on: + workflow_dispatch: + +jobs: + exp: + runs-on: ubuntu-latest + steps: + - name: Test pkg + run: pkg --help