Skip to content

Commit 7ee4268

Browse files
committed
publish script
1 parent 684e95d commit 7ee4268

7 files changed

Lines changed: 174 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!*.pubxml
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project>
6+
<PropertyGroup>
7+
<Configuration>Release</Configuration>
8+
<Platform>Any CPU</Platform>
9+
<PublishDir>bin\publish\osx-arm64\</PublishDir>
10+
<PublishProtocol>FileSystem</PublishProtocol>
11+
<_TargetId>Folder</_TargetId>
12+
<TargetFramework>net8.0</TargetFramework>
13+
<RuntimeIdentifier>osx-arm64</RuntimeIdentifier>
14+
<SelfContained>true</SelfContained>
15+
<PublishSingleFile>true</PublishSingleFile>
16+
<PublishTrimmed>false</PublishTrimmed>
17+
</PropertyGroup>
18+
</Project>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project>
6+
<PropertyGroup>
7+
<Configuration>Release</Configuration>
8+
<Platform>Any CPU</Platform>
9+
<PublishDir>bin\publish\osx-x64\</PublishDir>
10+
<PublishProtocol>FileSystem</PublishProtocol>
11+
<_TargetId>Folder</_TargetId>
12+
<TargetFramework>net8.0</TargetFramework>
13+
<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
14+
<SelfContained>true</SelfContained>
15+
<PublishSingleFile>true</PublishSingleFile>
16+
<PublishTrimmed>false</PublishTrimmed>
17+
</PropertyGroup>
18+
</Project>

scripts/publish_tool/config.json

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"OrdersCount": 500000,
3+
"StartDT": "2014-01-01T00:00:00Z",
4+
"YearsCount": 3,
5+
"CutDateBefore": "2000-02-15",
6+
"CutDateAfter": "2050-11-20",
7+
"CustomerFakeGenerator": -100000,
8+
"CustomerPercentage": 0.15,
9+
"OutputFormat": "CSV",
10+
"SalesOrders": "BOTH",
11+
"DeltaTableOrdersPerFile": 1000000,
12+
"ParquetOrdersRowGroupSize": 250000,
13+
"-CsvMaxOrdersPerFile": 100000,
14+
"-CsvGzCompression": 1,
15+
16+
17+
"DaysWeight": {
18+
"DaysWeightConstant": false,
19+
"DaysWeightPoints": [ 0, 10, 30, 40, 70, 75, 80, 100 ],
20+
"DaysWeightValues": [ 2, 3, 5, 9, 11, 16, 14, 13 ],
21+
"DaysWeightAddSpikes": true,
22+
"WeekDaysFactor": [ 0.7, 0.8, 1, 1.3, 1.2, 1, 1.6 ],
23+
"DayRandomness": 0.05
24+
},
25+
26+
"OrderRowsWeights": [ 12, 9, 7, 4, 1, 1, 1 ],
27+
"OrderQuantityWeights": [ 20, 15, 12, 6, 4, 4, 4, 2, 1, 1 ],
28+
"DiscountWeights": [ 80, 5, 2, 2, 3, 4, 4, 8, 9, 10, 15, 20, 20, 15, 9 ],
29+
"OnlinePerCent": [ 0.12, 0.16, 0.20, 0.30, 0.6, 0.5 ],
30+
31+
"DeliveryDateLambdaWeights": [ 10, 4, 3, 2, 2 ],
32+
33+
"CountryCurrency": {
34+
"AU": "AUD",
35+
"CA": "CAD",
36+
"FR": "EUR",
37+
"DE": "EUR",
38+
"IT": "EUR",
39+
"NL": "EUR",
40+
"GB": "GBP",
41+
"US": "USD"
42+
},
43+
44+
"AnnualSpikes": [
45+
{
46+
"StartDay": 10,
47+
"EndDay": 60,
48+
"Factor": 2
49+
},
50+
{
51+
"StartDay": 100,
52+
"EndDay": 120,
53+
"Factor": 1
54+
},
55+
{
56+
"StartDay": 200,
57+
"EndDay": 260,
58+
"Factor": 0.5
59+
},
60+
{
61+
"StartDay": 345,
62+
"EndDay": 375,
63+
"Factor": 1.5
64+
}
65+
],
66+
67+
"OneTimeSpikes": [
68+
{
69+
"DT1": "2014-02-25",
70+
"DT2": "2014-11-25",
71+
"Factor": 0.5
72+
},
73+
{
74+
"DT1": "2018-01-01",
75+
"DT2": "2018-08-15",
76+
"Factor": 1.5
77+
},
78+
{
79+
"DT1": "2020-09-28",
80+
"DT2": "2021-09-15",
81+
"Factor": 0.5
82+
}
83+
],
84+
85+
"CustomerActivity": {
86+
"StartDateWeightPoints": [ 1980, 1990, 2000, 2010 ],
87+
"StartDateWeightValues": [ 10, 10, 5, 5 ],
88+
"EndDateWeightPoints": [ 2005, 2015, 2025, 2035, 2045 ],
89+
"EndDateWeightValues": [ 5, 5, 10, 15, 25 ]
90+
}
91+
}

scripts/publish_tool/data.xlsx

295 KB
Binary file not shown.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
DEL ..\..\DatabaseGenerator\bin\publish\win-x64\*.* /Q
2+
DEL ..\..\DatabaseGenerator\bin\publish\linux-x64\*.* /Q
3+
DEL ..\..\DatabaseGenerator\bin\publish\osx-x64\*.* /Q
4+
DEL ..\..\DatabaseGenerator\bin\publish\osx-arm64\*.* /Q
5+
6+
dotnet build ../../ContosoDGV2.sln --no-incremental --configuration Release
7+
dotnet publish ../../ContosoDGV2.sln -p:PublishProfile=WinX64
8+
dotnet publish ../../ContosoDGV2.sln -p:PublishProfile=LinuxX64
9+
dotnet publish ../../ContosoDGV2.sln -p:PublishProfile=osx-x64
10+
dotnet publish ../../ContosoDGV2.sln -p:PublishProfile=osx-arm64
11+
12+
COPY config.json ..\..\DatabaseGenerator\bin\publish\win-x64 /Y
13+
COPY data.xlsx ..\..\DatabaseGenerator\bin\publish\win-x64 /Y
14+
COPY readme.txt ..\..\DatabaseGenerator\bin\publish\win-x64 /Y
15+
16+
COPY config.json ..\..\DatabaseGenerator\bin\publish\linux-x64 /Y
17+
COPY data.xlsx ..\..\DatabaseGenerator\bin\publish\linux-x64 /Y
18+
COPY readme.txt ..\..\DatabaseGenerator\bin\publish\linux-x64 /Y
19+
20+
COPY config.json ..\..\DatabaseGenerator\bin\publish\osx-x64 /Y
21+
COPY data.xlsx ..\..\DatabaseGenerator\bin\publish\osx-x64 /Y
22+
COPY readme.txt ..\..\DatabaseGenerator\bin\publish\osx-x64 /Y
23+
24+
COPY config.json ..\..\DatabaseGenerator\bin\publish\osx-arm64 /Y
25+
COPY data.xlsx ..\..\DatabaseGenerator\bin\publish\osx-arm64 /Y
26+
COPY readme.txt ..\..\DatabaseGenerator\bin\publish\osx-arm64 /Y
27+
28+
29+
cd ..\..\DatabaseGenerator\bin\publish\win-x64
30+
tar.exe -a -c -f DatabaseGenerator.winx64.zip readme.txt config.json data.xlsx DatabaseGenerator.exe
31+
cd ..\linux-x64
32+
tar.exe -a -c -f DatabaseGenerator.linuxx64.zip readme.txt config.json data.xlsx DatabaseGenerator
33+
34+
cd ..\osx-x64
35+
tar.exe -a -c -f DatabaseGenerator.osx-x64.zip readme.txt config.json data.xlsx DatabaseGenerator
36+
37+
cd ..\osx-arm64
38+
tar.exe -a -c -f DatabaseGenerator.osx-arm64.zip readme.txt config.json data.xlsx DatabaseGenerator
39+
40+
PAUSE

scripts/publish_tool/readme.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Contoso Data Generator V2
2+
3+
Contoso Data Generator is a tool for generating sample data with randomly generated orders for the Contoso data model to provide demo data. Generated data can be imported into Power BI, Fabric, and other platforms.
4+
5+
Documentation: https://docs.sqlbi.com/contoso-data-generator/
6+
Project: https://github.com/sql-bi/Contoso-Data-Generator-V2

0 commit comments

Comments
 (0)