prism-code-workspace 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- prism_code_workspace-1.0.0.dist-info/METADATA +272 -0
- prism_code_workspace-1.0.0.dist-info/RECORD +30 -0
- prism_code_workspace-1.0.0.dist-info/WHEEL +4 -0
- prism_code_workspace-1.0.0.dist-info/entry_points.txt +3 -0
- prism_code_workspace-1.0.0.dist-info/licenses/LICENSE +21 -0
- python_app/__init__.py +3 -0
- python_app/ai.py +225 -0
- python_app/analysis.py +953 -0
- python_app/compare.py +685 -0
- python_app/compare_engine.py +284 -0
- python_app/compiled_analysis.py +727 -0
- python_app/desktop.py +181 -0
- python_app/function_pov/__init__.py +16 -0
- python_app/function_pov/analyzer.py +464 -0
- python_app/function_pov/graph.py +50 -0
- python_app/function_pov/models.py +53 -0
- python_app/function_pov/pov/__init__.py +17 -0
- python_app/function_pov/pov/engine.py +1630 -0
- python_app/function_pov/pov/exercises.py +1263 -0
- python_app/function_pov_ui.py +1749 -0
- python_app/i18n.py +570 -0
- python_app/installer.nsi +70 -0
- python_app/installer_runtime.nsi +70 -0
- python_app/js_analysis.py +709 -0
- python_app/launch.py +6 -0
- python_app/launch_native.py +14 -0
- python_app/metrics_advisor.py +79 -0
- python_app/native_app.py +1709 -0
- python_app/requirements.txt +7 -0
- python_app/server.py +453 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
Unicode true
|
|
2
|
+
!include "MUI2.nsh"
|
|
3
|
+
|
|
4
|
+
!ifndef APP_VERSION
|
|
5
|
+
!define APP_VERSION "1.2.0"
|
|
6
|
+
!endif
|
|
7
|
+
!ifndef PAYLOAD_DIR
|
|
8
|
+
!define PAYLOAD_DIR "..\dist\PrismPy"
|
|
9
|
+
!endif
|
|
10
|
+
!ifndef OUT_FILE
|
|
11
|
+
!define OUT_FILE "..\installer\Prism-Python-Setup-1.2.0.exe"
|
|
12
|
+
!endif
|
|
13
|
+
|
|
14
|
+
Name "Prism"
|
|
15
|
+
OutFile "${OUT_FILE}"
|
|
16
|
+
InstallDir "$LOCALAPPDATA\Programs\Prism"
|
|
17
|
+
InstallDirRegKey HKCU "Software\Prism" "InstallDir"
|
|
18
|
+
RequestExecutionLevel user
|
|
19
|
+
SetCompressor /SOLID lzma
|
|
20
|
+
BrandingText "Prism 路 Python desktop workspace"
|
|
21
|
+
|
|
22
|
+
!define MUI_ABORTWARNING
|
|
23
|
+
!define MUI_ICON "${__FILEDIR__}\..\assets\icon.ico"
|
|
24
|
+
!define MUI_UNICON "${__FILEDIR__}\..\assets\icon.ico"
|
|
25
|
+
!insertmacro MUI_PAGE_WELCOME
|
|
26
|
+
!insertmacro MUI_PAGE_DIRECTORY
|
|
27
|
+
!insertmacro MUI_PAGE_INSTFILES
|
|
28
|
+
!insertmacro MUI_PAGE_FINISH
|
|
29
|
+
!insertmacro MUI_UNPAGE_CONFIRM
|
|
30
|
+
!insertmacro MUI_UNPAGE_INSTFILES
|
|
31
|
+
!insertmacro MUI_LANGUAGE "English"
|
|
32
|
+
|
|
33
|
+
VIProductVersion "1.2.0.0"
|
|
34
|
+
VIAddVersionKey "ProductName" "Prism"
|
|
35
|
+
VIAddVersionKey "FileDescription" "Prism code analysis workspace"
|
|
36
|
+
VIAddVersionKey "FileVersion" "1.2.0"
|
|
37
|
+
VIAddVersionKey "ProductVersion" "1.2.0"
|
|
38
|
+
VIAddVersionKey "LegalCopyright" "Prism"
|
|
39
|
+
|
|
40
|
+
Section "Prism" SecMain
|
|
41
|
+
SetOutPath "$INSTDIR"
|
|
42
|
+
File /r "${PAYLOAD_DIR}\*.*"
|
|
43
|
+
|
|
44
|
+
CreateDirectory "$SMPROGRAMS\Prism"
|
|
45
|
+
CreateShortcut "$SMPROGRAMS\Prism\Prism.lnk" "$INSTDIR\runtime\pythonw.exe" '"$INSTDIR\python_app\desktop.py"' "$INSTDIR\assets\icon.ico" 0 SW_SHOWNORMAL "" "$INSTDIR"
|
|
46
|
+
CreateShortcut "$SMPROGRAMS\Prism\Uninstall Prism.lnk" "$INSTDIR\Uninstall Prism.exe"
|
|
47
|
+
CreateShortcut "$DESKTOP\Prism.lnk" "$INSTDIR\runtime\pythonw.exe" '"$INSTDIR\python_app\desktop.py"' "$INSTDIR\assets\icon.ico" 0 SW_SHOWNORMAL "" "$INSTDIR"
|
|
48
|
+
|
|
49
|
+
WriteUninstaller "$INSTDIR\Uninstall Prism.exe"
|
|
50
|
+
WriteRegStr HKCU "Software\Prism" "InstallDir" "$INSTDIR"
|
|
51
|
+
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Prism" "DisplayName" "Prism"
|
|
52
|
+
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Prism" "DisplayVersion" "${APP_VERSION}"
|
|
53
|
+
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Prism" "Publisher" "Prism"
|
|
54
|
+
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Prism" "DisplayIcon" "$INSTDIR\assets\icon.ico"
|
|
55
|
+
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Prism" "UninstallString" '"$INSTDIR\Uninstall Prism.exe"'
|
|
56
|
+
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Prism" "InstallLocation" "$INSTDIR"
|
|
57
|
+
WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Prism" "NoModify" 1
|
|
58
|
+
WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Prism" "NoRepair" 1
|
|
59
|
+
SectionEnd
|
|
60
|
+
|
|
61
|
+
Section "Uninstall"
|
|
62
|
+
Delete "$DESKTOP\Prism.lnk"
|
|
63
|
+
Delete "$SMPROGRAMS\Prism\Prism.lnk"
|
|
64
|
+
Delete "$SMPROGRAMS\Prism\Uninstall Prism.lnk"
|
|
65
|
+
RMDir "$SMPROGRAMS\Prism"
|
|
66
|
+
RMDir /r "$INSTDIR"
|
|
67
|
+
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Prism"
|
|
68
|
+
DeleteRegKey HKCU "Software\Prism"
|
|
69
|
+
SectionEnd
|
|
70
|
+
|