[v2] Update Workflows + runtime

This commit is contained in:
Lea Anthony
2021-09-13 18:58:09 +10:00
parent d270cc2ffa
commit abbbdda102
6 changed files with 17 additions and 687 deletions
+7 -20
View File
@@ -13,26 +13,13 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: lts
- name: Install dependencies
uses: elstudio/actions-js-build/build@v4
with:
wdPath: 'v2/internal/frontend/runtime'
args: install
- name: Rebuild runtime
uses: elstudio/actions-js-build/build@v4
with:
wdPath: 'v2/internal/frontend/runtime'
args: run build
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('v2/internal/frontend/runtime/package-lock.json') }}
restore-keys: npm-
node-version: 14.17.6
# cache: 'npm'
# cache-dependency-path: v2/internal/frontend/runtime/package-lock.json
- run: npm install
working-directory: v2/internal/frontend/runtime
- run: npm run build
working-directory: v2/internal/frontend/runtime
- name: Commit changes
uses: elstudio/actions-js-build/commit@v4
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+6
View File
@@ -574,6 +574,12 @@
"has-flag": "^3.0.0"
}
},
"svelte": {
"version": "3.42.5",
"resolved": "https://registry.npmjs.org/svelte/-/svelte-3.42.5.tgz",
"integrity": "sha512-+y9ivcwMojAb0e87W7vR/UP7go44zc/3gtEciIMb8CUoIkUx6UJmPloBvVuO9MDXoGkUZM5SHr5PbLze9fJQVw==",
"dev": true
},
"unbox-primitive": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz",
+2 -1
View File
@@ -16,6 +16,7 @@
"license": "ISC",
"devDependencies": {
"esbuild": "^0.12.17",
"npm-run-all": "^4.1.5"
"npm-run-all": "^4.1.5",
"svelte": "^3.42.2"
}
}
@@ -282,36 +282,28 @@
function WindowGetPosition() {
return Call(":wails:WindowGetPos");
}
function WindowHide() {
window.WailsInvoke("WH");
}
function WindowShow() {
window.WailsInvoke("WS");
}
function WindowMaximise() {
window.WailsInvoke("WM");
}
function WindowUnmaximise() {
window.WailsInvoke("WU");
}
function WindowMinimise() {
window.WailsInvoke("Wm");
}
function WindowUnminimise() {
window.WailsInvoke("Wu");
}
function WindowSetRGBA(RGBA) {
let rgba = JSON.stringify(RGBA);
window.WailsInvoke("Wr:" + rgba);
}
function WindowClose() {
window.WailsInvoke("WC");
}