Comments (3)
Good news, I got this working with GitHub Actions π
This is the (short version of the) workflow script I'm using
name: Build for Windows
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Node.js 12
uses: actions/setup-node@master
with:
node-version: '12.x'
registry-url: 'https://npm.pkg.github.com'
- name: Install Visual Studio 2017
run: choco install visualstudio2017buildtools
- name: Install Visual Studio 2017 Workloads
shell: powershell
run: ./vs2017.ps1
- name: Import code signing certificate
shell: powershell
run: ./certificate.ps1
- name: Install Cordova
run: yarn global add cordova@9
- name: Install dependencies
env:
NODE_AUTH_TOKEN: ${{ secrets.YARN_TOKEN }}
run: yarn install
- name: Build
shell: bash
run: yarn build
- name: Cordova
shell: bash
env:
MSBUILDDIR: '/C/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin'
NODE_AUTH_TOKEN: ${{ secrets.YARN_TOKEN }}
run: >
cordova prepare windows &&
cordova build windows --release --archs="x86 x64" --bundle --win --buildConfig=build.json
It runs two PowerShell scripts. One which installs VS2017 and the required dependencies (the GitHub Actions windows environment comes with VS2019 installed which doesn't work for cordova-windows):
Start-Process `
-FilePath "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" `
-Wait `
-ArgumentList @( `
"modify",
"--installPath `"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools`"",
"--add Microsoft.VisualStudio.Component.Windows10SDK",
"--add Microsoft.VisualStudio.Component.Windows10SDK.15063.Desktop",
"--add Microsoft.VisualStudio.Component.Windows10SDK.15063.UWP",
"--add Microsoft.VisualStudio.Workload.WebBuildTools",
"--add Microsoft.VisualStudio.Workload.UniversalBuildTools",
"--norestart",
"--quiet"
)
And one which installs the code signing certificate:
$Pfxpath = './codesigning.pfx'
$Password = ConvertTo-SecureString -String 'secret' -AsPlainText -Force
Import-PfxCertificate -FilePath $Pfxpath -CertStoreLocation Cert:\CurrentUser\My -Password $Password
from cordova-windows.
Same problem here with Travis. I posted a question and some more details over here: https://travis-ci.community/t/cannot-add-certificate-to-cert-currentuser-my/5976
from cordova-windows.
We are archiving this repository following Apache Cordova's Deprecation Policy. We will not continue to work on this repository. Therefore all issues and pull requests are being closed. Thanks for your contribution.
from cordova-windows.
Related Issues (20)
- JavaScript UWP development from VS 2019 not supported HOT 1
- JavaScript UWP development from Visual Studio 2019 not supported HOT 1
- Can't cordova build or run platform windows with Visual Studio 2017 HOT 3
- use @cordova/eslint-config HOT 1
- META: start major release 8.0.0 with some breaking changes HOT 1
- Can we use target minimum windows SDK version 10.0.16299.0 HOT 1
- Error: WebGL not supported HOT 2
- Windows: uap capability included when building for 8.1 HOT 1
- Using Chrome-based webview as rendering backend for Cordova for Windows instead of EdgeHTML HOT 2
- comma as decimal separator on ```<input type="number"> ``` HOT 1
- window.alert , prompt, confirm not working, please help me it is an emergency. Please please help me urgently.ππ»ππ»ππ»ππ» HOT 1
- The following navigation rule had an invalid URI scheme and will be ignored: "*". HOT 1
- Microsoft Surface hybrid touch events HOT 1
- Absolute (root relative) paths do not resolve to www folder, instead point to C:\... HOT 3
- Cordova installation problem HOT 2
- Running HelloWorld throws an error HOT 2
- package.windows10.appxmanifest does not set the correct descriptions as in config.xml HOT 1
- instructions from https://cordova.apache.org for platform Windows erroneous HOT 1
- The processor architecture of your project 'arm' doesnβt match the processor architecture 'x86' of the referenced project 'SQLite3.UWP'. HOT 1
- shelljs 0.5.3 is vulnerable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-windows.