Skip to content

Commit 223c484

Browse files
committed
add event build package
1 parent d1cb2e4 commit 223c484

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

CADPythonShell.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1111
.gitignore = .gitignore
1212
README.md = README.md
1313
RPS LICENSE.txt = RPS LICENSE.txt
14+
PackageContents.xml = PackageContents.xml
1415
EndProjectSection
1516
EndProject
1617
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CADPythonShell", "CADPythonShell\CADPythonShell.csproj", "{7E37F14E-D840-42F8-8CA6-90FFC5497972}"

CADPythonShell/CADPythonShell.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,10 @@
279279
</PreBuildEvent>
280280
</PropertyGroup>
281281
<PropertyGroup>
282-
<PostBuildEvent>
283-
</PostBuildEvent>
282+
<PostBuildEvent>set bundle="C:\ProgramData\Autodesk\ApplicationPlugins\CADPythonShell.bundle\"
283+
if not exist "%25bundle%25" mkdir "%25bundle%25"
284+
xcopy "$(TargetDir)*.*" "%25bundle%25" /Y /I /E /R
285+
xcopy "$(SolutionDir)PackageContents.xml" "%25bundle%25" /Y /R</PostBuildEvent>
284286
</PropertyGroup>
285287
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
286288
Other similar extension points exist, see Microsoft.Common.targets.

PackageContents.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<ApplicationPackage SchemaVersion="1.0"
3+
AutodeskProduct="CADPythonShell"
4+
ProductType="Application"
5+
Name="CADPythonShell">
6+
<RuntimeRequirements SeriesMin="15.0"
7+
SeriesMax="25.0"
8+
Platform="AutoCAD|AutoCAD*"
9+
OS="Win32|Win64" />
10+
<Components>
11+
<ComponentEntry AppName="CADPythonShell"
12+
Version="1.0"
13+
ModuleName="./CADPythonShell.dll"
14+
AppDescription="Description for command module of CAD PythonShell"
15+
LoadOnCommandInvocation="True" LoadOnRequest="True">
16+
<Commands>
17+
<Command Local="PythonConsole" Global="PythonConsole" />
18+
</Commands>
19+
</ComponentEntry>
20+
</Components>
21+
</ApplicationPackage>

0 commit comments

Comments
 (0)