This repository was archived by the owner on Jul 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
fix: Move bf-generate-lib templates to asar.unpacked #4411
Merged
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
2ba9e39
decompose shell and api into smaller types
a-b-r-o-w-n 89eb970
nest plugin pages under bot scope
a-b-r-o-w-n 827a071
simplify webpack config
a-b-r-o-w-n 25cce5d
make extension client external
a-b-r-o-w-n 215405f
add mechanism to sync client shell to iframe plugin host
a-b-r-o-w-n edb859e
only fetch extensions when app mounts
a-b-r-o-w-n 43feb20
add plugin pages selector
a-b-r-o-w-n 1f162a8
output source maps with extension bundles
a-b-r-o-w-n 2b497b8
rename file
a-b-r-o-w-n 3550723
clean up manifest after loading extensions
a-b-r-o-w-n 2b0ab78
add project api hook
a-b-r-o-w-n ed28e6d
update sample plugin to use project api
a-b-r-o-w-n 0fd405d
Merge branch 'main' into abrown/extensions/page-api
a-b-r-o-w-n 3840930
Merge branch 'main' into abrown/extensions/page-api
a-b-r-o-w-n 7df7985
disable sample-ui-plugin
a-b-r-o-w-n 96f8138
do not sync store to window
a-b-r-o-w-n 6adfabb
Merge branch 'main' into abrown/extensions/page-api
a-b-r-o-w-n 9d11484
prepare test-utils and types for publishing
a-b-r-o-w-n 3239a94
update package references to published pacakges
a-b-r-o-w-n 90fbbb4
add types package
a-b-r-o-w-n caceb06
remove shared dependency from extension-client
a-b-r-o-w-n cb10bd4
remove data from shell
a-b-r-o-w-n b2e7bf1
more types updates
a-b-r-o-w-n 5d19a6d
add useFormHook to expose current form data
a-b-r-o-w-n 09235d7
Merge branch 'main' into abrown/extensions/page-api
a-b-r-o-w-n 5b928c6
Merge branch 'abrown/extensions/page-api' into abrown/extensions/hook…
a-b-r-o-w-n 7ca96a6
re-order useEffects
a-b-r-o-w-n 6320acc
Merge branch 'abrown/extensions/page-api' into abrown/extensions/hook…
a-b-r-o-w-n e35cc61
Merge branch 'main' into abrown/extensions/page-api
a-b-r-o-w-n eccd4f1
Merge branch 'abrown/extensions/page-api' into abrown/extensions/hook…
a-b-r-o-w-n 067e798
Merge branch 'main' into abrown/extensions/page-api
a-b-r-o-w-n 36aec9b
Merge branch 'abrown/extensions/page-api' into abrown/extensions/hook…
a-b-r-o-w-n 10d62cb
add missing import
a-b-r-o-w-n a787063
move types to dependencies
a-b-r-o-w-n c1cd2a0
fix type errors
a-b-r-o-w-n c7365d1
add missing dependency
a-b-r-o-w-n 96db656
Merge branch 'main' into abrown/extensions/hooks-refactor
a-b-r-o-w-n 9f01bfe
fix tests
a-b-r-o-w-n a9109af
remove old comments
a-b-r-o-w-n e111ad3
update lockfile
a-b-r-o-w-n 2c64035
Merge branch 'main' into abrown/extensions/hooks-refactor
a-b-r-o-w-n db18ee1
use stub currentDialog when none found
a-b-r-o-w-n d209284
fix build:dev
a-b-r-o-w-n 7b7e820
Merge branch 'main' into abrown/extensions/hooks-refactor
a-b-r-o-w-n 6b8dbaf
fix merge conflict
a-b-r-o-w-n b5548f7
form dialog templates electron asar unpacked
sorgh 529d138
Merge branch 'abrown/extensions/hooks-refactor' of https://github.com…
sorgh 2e6d2bd
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
sorgh aa0c442
Move templates to unpacked
sorgh 44a02dd
Update hint texts and minor fixes
sorgh 30014bd
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
sorgh 1c75a2b
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
sorgh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
Composer/packages/electron-server/scripts/copy-form-dialog-templates.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| const fs = require('fs-extra'); | ||
| const { resolve } = require('path'); | ||
| const electronBuildConfig = require('../electron-builder-config.json'); | ||
|
|
||
| const tag = 'copy-form-dialogs-templates.js'; | ||
|
|
||
| const source = resolve(__dirname, '../../../node_modules/@microsoft/bf-generate-library/templates'); | ||
| const unpackedDir = 'app.asar.unpacked/form-dialog-templates'; | ||
| console.log(`[${tag}] Copying templates from: ${source}`); | ||
|
|
||
| let destination; | ||
| switch (process.platform) { | ||
| case 'darwin': | ||
| const productName = electronBuildConfig.productName; | ||
| destination = resolve(__dirname, `../dist/mac/${productName}.app/Contents/Resources`, unpackedDir); | ||
| console.log(`[${tag}] Mac detected. Copying templates to: ${destination}`); | ||
| break; | ||
|
|
||
| case 'linux': | ||
| destination = resolve(__dirname, '../dist/linux-unpacked/resources', unpackedDir); | ||
| console.log(`[${tag}] Linux detected. Copying templates to: ${destination}`); | ||
| break; | ||
|
|
||
| case 'win32': | ||
| destination = resolve(__dirname, '../dist/win-unpacked/resources', unpackedDir); | ||
| console.log(`[${tag}] Windows detected. Copying templates to ${destination}`); | ||
| break; | ||
|
|
||
| default: | ||
| console.error(`[${tag}] Detected platform is not Mac / Linux / Windows`); | ||
| process.exit(1); | ||
| } | ||
|
|
||
| // copy templates from bf-generate-library/templates to asar unpacked dir under packaged electron app | ||
| fs.copy(source, destination, { filter: (src) => !src.endsWith('.md') }, (err) => { | ||
| if (err) { | ||
| console.error(`[${tag}] Error while copying plugins: `, err); | ||
| return; | ||
| } | ||
| console.log(`[${tag}] Copied plugins successfully.`); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.