added github action workflow
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
name: "Main workflow"
|
||||
on: [pull_request, push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- uses: actions/setup-node@v1
|
||||
- name: "Install dependencies"
|
||||
run: yarn
|
||||
- name: "Build application"
|
||||
run: yarn dist
|
||||
- name: "Archive build artifacts"
|
||||
uses: svenstaro/upload-release-action@v1-release
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: dist/*
|
||||
tag: ${{ github.run_id }}
|
||||
overwrite: true
|
||||
file_glob: true
|
||||
@@ -47,7 +47,6 @@ export class AppComponent {
|
||||
ngAfterViewInit() {
|
||||
this.spinnerService.setSpinner(this.spinner);
|
||||
this.statusService.setStatus(this.status);
|
||||
console.log(this.webview);
|
||||
this.webService.setWebView(this.webview.nativeElement);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,9 +77,9 @@ export class ElectronService {
|
||||
rejectUnauthorized: !isDevMode(),
|
||||
json: { token: token },
|
||||
};
|
||||
console.log(options);
|
||||
// console.log(options);
|
||||
this.appService.request(options, async (error, response, body) => {
|
||||
console.log(error, body);
|
||||
// console.log(error, body);
|
||||
if (!error && body.data && body.data.apps && body.data.apps.length) {
|
||||
for (let i = 0; i < body.data.apps.length; i++) {
|
||||
let app = body.data.apps[i];
|
||||
@@ -157,8 +157,13 @@ export class ElectronService {
|
||||
if (data) {
|
||||
let url = data.split('#');
|
||||
switch (url[0]) {
|
||||
case 'sidequest://w/':
|
||||
this.adbService.runAdbCommand('adb shell am start -a android.intent.action.VIEW -d ' + url[1]).then(() => {
|
||||
this.statusService.showStatus('Launching WebXR in browser...');
|
||||
});
|
||||
this.webviewService.isWebviewLoading = false;
|
||||
break;
|
||||
case 'sidequest://i/':
|
||||
console.log(data);
|
||||
this.installFromToken(url[1]);
|
||||
break;
|
||||
case 'sidequest://unload/':
|
||||
|
||||
@@ -149,7 +149,6 @@ export class ProcessBucketService {
|
||||
this.tasks = this.tasks.filter(t => !t.failed);
|
||||
}
|
||||
clearAll() {
|
||||
igin;
|
||||
this.tasks = [];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@ export class WebviewService {
|
||||
appService.setWebviewService(this);
|
||||
}
|
||||
setWebView(webView) {
|
||||
console.log({ webView });
|
||||
this.webView = webView;
|
||||
this.setupWebview();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user