Skip to content

Commit

Permalink
refarctor to electron-builder, kangaroo running
Browse files Browse the repository at this point in the history
  • Loading branch information
matthme committed Oct 7, 2024
1 parent 4b0d7c9 commit d3c1d87
Show file tree
Hide file tree
Showing 40 changed files with 5,496 additions and 11,349 deletions.
37 changes: 9 additions & 28 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# build
resources

# pouch
pouch/*.webhapp

# electron-builder
out/

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

Expand Down Expand Up @@ -64,34 +73,6 @@ typings/
# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# Webpack
.webpack/

# Vite
.vite/

# Electron-Forge
out/

# build
binaries/
main_window/
holochain-data/
41 changes: 41 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
appId: electron.kangaroo.test
productName: Holochain Kangaroo Electron
directories:
buildResources: build
files:
- resources
- out
asarUnpack:
- resources/**
afterSign: scripts/notarize.js
win:
executableName: holochain-kangaroo-electron
nsis:
artifactName: ${name}-${version}-setup.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: always
mac:
entitlementsInherit: build/entitlements.mac.plist
# Uncomment selectively for your application's purposes
# extendInfo:
# - NSCameraUsageDescription: Application requests access to the device's camera.
# - NSMicrophoneUsageDescription: Application requests access to the device's microphone.
# - NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
# - NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
notarize: false
dmg:
artifactName: ${name}-${version}.${ext}
linux:
target:
- AppImage
# - deb
# - snap
maintainer: electronjs.org
category: Utility
appImage:
artifactName: ${name}-${version}.${ext}
npmRebuild: false
# publish:
# provider: generic
# url: https://example.com/auto-updates
29 changes: 29 additions & 0 deletions electron.vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { defineConfig, externalizeDepsPlugin } from "electron-vite";
import { resolve } from "path";

export default defineConfig({
main: {
plugins: [externalizeDepsPlugin({ exclude: ["@holochain/client", "get-port", "nanoid"] })],
},
preload: {
build: {
rollupOptions: {
input: {
happ: resolve(__dirname, "src/preload/happ.ts"),
splashscreen: resolve(__dirname, "src/preload/splashscreen.ts"),
},
},
},
},
renderer: {
build: {
rollupOptions: {
input: {
indexNotFound: resolve(__dirname, "src/renderer/indexNotFound.html"),
indexNotFound2: resolve(__dirname, "src/renderer/indexNotFound2.html"),
splashscreen: resolve(__dirname, "src/renderer/splashscreen.html"),
},
},
},
},
});
189 changes: 0 additions & 189 deletions electron/main.ts

This file was deleted.

13 changes: 0 additions & 13 deletions electron/preload.ts

This file was deleted.

7 changes: 0 additions & 7 deletions electron/renderer.ts

This file was deleted.

5 changes: 0 additions & 5 deletions electron/types.d.ts

This file was deleted.

22 changes: 0 additions & 22 deletions electron/types.ts

This file was deleted.

Loading

0 comments on commit d3c1d87

Please sign in to comment.