blob: 8cc5518a9329e9163f7c2c1f3432f4d60d42235b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
--- Package/deb/Deb.Packaging.targets.orig 2019-01-24 18:55:16.318519608 +0100
+++ Package/deb/Deb.Packaging.targets 2019-01-25 22:02:12.256943997 +0100
@@ -4,7 +4,7 @@
<PropertyGroup>
<TempFolder>temp</TempFolder>
<PackageDebFolder>Package/deb</PackageDebFolder>
- <PackageTempFolder>$(PackageDebFolder)/$(TempFolder)</PackageTempFolder>
+ <PackageTempFolder>@pkgdir@</PackageTempFolder>
</PropertyGroup>
<ItemGroup>
@@ -23,29 +23,15 @@
<!-- Build the application deb -->
<Exec Command="chmod 777 $(StageDir)/net45/*.exe" />
<Exec Command="rm -rf $(PackageTempFolder)" />
- <Exec Command="mkdir -p $(PackageTempFolder)/DEBIAN" />
- <Exec Command="cp $(PackageDebFolder)/DEBIAN/* $(PackageTempFolder)/DEBIAN"/>
-
- <FileUpdate Files="$(PackageTempFolder)/DEBIAN/control"
- Expression="{xxx}"
- Replacement="$(PackageVersion)" />
<ItemGroup>
<StdLibOutputFiles Include="$(StageDir)/Lib/**/*.py" />
</ItemGroup>
<Exec Command="dos2unix %(StdLibOutputFiles.Identity)" />
- <Exec Command="dos2unix $(PackageTempFolder)/DEBIAN/control"/>
<Copy SourceFiles="@(ScriptFiles)" DestinationFolder="$(PackageTempFolder)/usr/bin/"/>
<Copy SourceFiles="@(ApplicationFiles)" DestinationFolder="$(PackageTempFolder)/usr/share/ironpython2.7/%(ApplicationFiles.RecursiveDir)"/>
<Copy SourceFiles="@(StdLibFiles)" DestinationFolder="$(PackageTempFolder)/usr/lib/ironpython2.7/%(StdLibFiles.RecursiveDir)"/>
- <Exec Command="fakeroot dpkg-deb -v --build $(PackageTempFolder)"/>
- <Copy
- SourceFiles="$(PackageDebFolder)/$(TempFolder).deb"
- DestinationFiles="$(PackageDir)/ironpython_$(PackageVersion).deb"/>
- <Delete Files="$(PackageDebFolder)/$(TempFolder).deb"/>
-
- <RemoveDir Directories="$(PackageTempFolder)" />
</Target>
</Project>
|