Skip to content

Commit

Permalink
Added build
Browse files Browse the repository at this point in the history
  • Loading branch information
barak committed Aug 14, 2024
1 parent ecdd309 commit 2a931f9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 27 deletions.
30 changes: 6 additions & 24 deletions electron-builder.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
appId: com.electron.app
productName: electron-app
directories:
buildResources: build
files:
Expand All @@ -12,29 +10,13 @@ files:
asarUnpack:
- resources/**
win:
executableName: electron-app
nsis:
artifactName: ${name}-${version}-setup.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: always
mac:
entitlementsInherit: build/entitlements.mac.plist
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
- snap
- deb
maintainer: electronjs.org
category: Utility
- target: "portable"
arch: [ "x64" ]
- target: "portable"
arch: [ "ia32" ]
artifactName: "${productName}_${arch}_v${version}.${ext}"
icon: "./packages/renderer/favicon.ico"
appImage:
artifactName: ${name}-${version}.${ext}
npmRebuild: false
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<router-view />
</template>

<script lang="ts">
<script setup lang="ts">
import { useMapStore } from './store/map-store'
window.electron.ipcRenderer.on('app-version', (_event, version) => {
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import { mapDataGovMap } from '../../common/maps/govmap.data'
import { useMapStore } from './store/map-store'
import draggable from './components/draggable.directive'
import { createApp } from 'vue'
import App from './app.vue'
import app from './app.vue'

export const pinia = createPinia()

createApp(App)
createApp(app)
.use(router)
.use(pinia)
.directive('draggable', draggable)
Expand Down

0 comments on commit 2a931f9

Please sign in to comment.