Skip to content

Commit

Permalink
export pfs.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
lalala123123 committed Nov 29, 2023
1 parent 9dbf84a commit 67dd3fb
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
3 changes: 0 additions & 3 deletions scripts/installer/windows/scripts/pfsvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ def init():
servicemanager.Initialize()
servicemanager.PrepareToHostSingle(PromptFlowServiceFramework)
servicemanager.StartServiceCtrlDispatcher()
elif len(sys.argv) == 2 and sys.argv[1] == "manual":
sys.argv = sys.argv[:1]
main()
else:
win32serviceutil.HandleCommandLine(PromptFlowServiceFramework)

Expand Down
42 changes: 42 additions & 0 deletions scripts/installer/windows/scripts/promptflow.spec
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,44 @@ pfazure_exe = EXE(
version="./version_info.txt",
)


pfs_a = Analysis(
['pfs.py'],
pathex=[],
binaries=[],
datas=datas,
hiddenimports=hidden_imports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pfs_pyz = PYZ(pfs_a.pure, pfs_a.zipped_data, cipher=block_cipher)
pfs_exe = EXE(
pfs_pyz,
pfs_a.scripts,
[],
exclude_binaries=True,
name='pfs',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='../resources/logo32.ico',
version="./version_info.txt",
)


pfsvc_a = Analysis(
['pfsvc.py'],
pathex=[],
Expand Down Expand Up @@ -133,6 +171,10 @@ coll = COLLECT(
pfazure_a.binaries,
pfazure_a.zipfiles,
pfazure_a.datas,
pfs_exe,
pfs_a.binaries,
pfs_a.zipfiles,
pfs_a.datas,
pfsvc_exe,
pfsvc_a.binaries,
pfsvc_a.zipfiles,
Expand Down

0 comments on commit 67dd3fb

Please sign in to comment.