1
0
Fork 0
mirror of synced 2024-06-27 02:20:35 +12:00

Merge pull request #242 from Budibase/routify-electron

electron asar
This commit is contained in:
Martin McKeaveney 2020-05-19 14:09:35 +01:00 committed by GitHub
commit eec8cc5968
3 changed files with 1 additions and 49 deletions

View file

@ -16,7 +16,6 @@
<link rel='stylesheet' href='/_builder/bundle.css'>
<link rel='stylesheet' href='/_builder/fonts.css'>
<link rel='stylesheet' href="/_builder/uikit.min.css">
<link rel='stylesheet' href="/_builder/nano.min.css">
</head>
<body id="app">

View file

@ -1,48 +0,0 @@
<script>
import { store } from "builderStore"
import AppList from "components/start/AppList.svelte"
import { onMount } from "svelte"
import IconButton from "components/common/IconButton.svelte"
import Spinner from "components/common/Spinner.svelte"
let promise = getApps()
async function getApps() {
const res = await fetch(`/api/applications`)
const json = await res.json()
if (res.ok) {
return json
} else {
throw new Error(json)
}
}
</script>
<main>
{#await promise}
<div class="spinner-container">
<Spinner />
</div>
{:then result}
<AppList apps={result} />
{:catch err}
<h1 style="color:red">{err}</h1>
{/await}
</main>
<style>
main {
height: 100%;
width: 100%;
font-family: "Roboto", Helvetica, Arial, sans-serif;
}
.spinner-container {
height: 100%;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
</style>

View file

@ -8,6 +8,7 @@
"url": "https://github.com/Budibase/budibase.git"
},
"build": {
"asar": true,
"appId": "com.budibase.builder",
"productName": "Budibase Builder",
"afterSign": "electron-builder-notarize",