Skip to content

Commit 70dda27

Browse files
committed
Update build procedure to also make .paclet file
1 parent 4c458a9 commit 70dda27

File tree

1 file changed

+36
-28
lines changed

1 file changed

+36
-28
lines changed

Build.nb

Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
NotebookFileLineBreakTest
1111
NotebookFileLineBreakTest
1212
NotebookDataPosition[ 158, 7]
13-
NotebookDataLength[ 16470, 411]
14-
NotebookOptionsPosition[ 14384, 365]
15-
NotebookOutlinePosition[ 14756, 381]
16-
CellTagsIndexPosition[ 14713, 378]
13+
NotebookDataLength[ 16869, 419]
14+
NotebookOptionsPosition[ 14784, 373]
15+
NotebookOutlinePosition[ 15155, 389]
16+
CellTagsIndexPosition[ 15112, 386]
1717
WindowFrame->Normal*)
1818

1919
(* Beginning of Notebook Content *)
@@ -80,7 +80,7 @@ Cell[BoxData[{
8080
RowBox[{"original", ",", "copy"}], "]"}], ";"}]}],
8181
"\[IndentingNewLine]", "]"}]}]}], "Input",
8282
InitializationCell->True,
83-
CellLabel->"In[12]:=",ExpressionUUID->"102a3a00-453d-4faf-904c-4a47bcfe4b0b"],
83+
CellLabel->"In[24]:=",ExpressionUUID->"102a3a00-453d-4faf-904c-4a47bcfe4b0b"],
8484

8585
Cell[BoxData[{
8686
RowBox[{
@@ -113,7 +113,7 @@ Cell[BoxData[{
113113
RowBox[{"original", ",", "copy"}], "]"}]}], "\[IndentingNewLine]",
114114
"]"}]}], "\[IndentingNewLine]", "]"}]}]}], "Input",
115115
InitializationCell->True,
116-
CellLabel->"In[14]:=",ExpressionUUID->"0a6823d9-a718-45ba-bfa0-24d3f9caab5e"],
116+
CellLabel->"In[26]:=",ExpressionUUID->"0a6823d9-a718-45ba-bfa0-24d3f9caab5e"],
117117

118118
Cell[BoxData[{
119119
RowBox[{
@@ -132,7 +132,7 @@ Cell[BoxData[{
132132
RowBox[{"{",
133133
RowBox[{"targetDir", ",", "name"}], "}"}], "]"}]}], "]"}]}]}], "Input",
134134
InitializationCell->True,
135-
CellLabel->"In[16]:=",ExpressionUUID->"696c7bc0-ee0e-49ed-9f7b-da110c2e6a0d"],
135+
CellLabel->"In[28]:=",ExpressionUUID->"696c7bc0-ee0e-49ed-9f7b-da110c2e6a0d"],
136136

137137
Cell[BoxData[
138138
RowBox[{
@@ -168,7 +168,7 @@ Cell[BoxData[
168168
RowBox[{"NotebookClose", "[", "nb", "]"}], ";"}]}],
169169
"\[IndentingNewLine]", "]"}]}]}]}]], "Input",
170170
InitializationCell->True,
171-
CellLabel->"In[18]:=",ExpressionUUID->"7af28f76-d927-4513-ba61-71057b439eff"]
171+
CellLabel->"In[30]:=",ExpressionUUID->"7af28f76-d927-4513-ba61-71057b439eff"]
172172
}, Closed]],
173173

174174
Cell[CellGroupData[{
@@ -197,7 +197,8 @@ Cell[BoxData[{
197197
RowBox[{"{",
198198
RowBox[{
199199
RowBox[{"\"\<EncodeQ\>\"", "\[Rule]", "False"}], ",",
200-
RowBox[{"\"\<Build\>\"", "\[Rule]", "\"\<rc\>\""}]}], "}"}]}], ";"}],
200+
RowBox[{"\"\<Build\>\"", "\[Rule]", "\"\<rc\>\""}], ",",
201+
RowBox[{"\"\<MakePacletQ\>\"", "\[Rule]", "True"}]}], "}"}]}], ";"}],
201202
"\[IndentingNewLine]"}], "\[IndentingNewLine]",
202203
RowBox[{
203204
RowBox[{"buildRelease", "[",
@@ -208,13 +209,17 @@ Cell[BoxData[{
208209
RowBox[{
209210
RowBox[{"{",
210211
RowBox[{
211-
"tmpDir", ",", "file", ",", "appName", ",", "encoded", ",", "extension",
212-
",", "build"}], "}"}], ",", "\[IndentingNewLine]",
212+
"tmpDir", ",", "file", ",", "appName", ",", "encoded", ",", "pacletQ",
213+
",", "extension", ",", "build"}], "}"}], ",", "\[IndentingNewLine]",
213214
RowBox[{
214215
RowBox[{"encoded", "=",
215216
RowBox[{"TrueQ", "@",
216217
RowBox[{"OptionValue", "[", "\"\<EncodeQ\>\"", "]"}]}]}], ";",
217218
"\[IndentingNewLine]",
219+
RowBox[{"pacletQ", "=",
220+
RowBox[{"TrueQ", "@",
221+
RowBox[{"OptionValue", "[", "\"\<MakePacletQ\>\"", "]"}]}]}], ";",
222+
"\[IndentingNewLine]",
218223
RowBox[{"build", "=",
219224
RowBox[{"OptionValue", "[", "\"\<Build\>\"", "]"}]}], ";",
220225
"\[IndentingNewLine]", "\[IndentingNewLine]",
@@ -232,12 +237,17 @@ Cell[BoxData[{
232237
RowBox[{"installation", "!"}]}]}], " ", "*)"}], "\[IndentingNewLine]",
233238
RowBox[{"appName", "=", "\"\<ImportMesh\>\""}], ";",
234239
"\[IndentingNewLine]", "\[IndentingNewLine]",
240+
RowBox[{"If", "[",
241+
RowBox[{
242+
RowBox[{"Not", "@",
243+
RowBox[{"DirectoryQ", "[", "targetDir", "]"}]}], ",",
244+
RowBox[{"CreateDirectory", "[", "targetDir", "]"}]}], "]"}], ";",
245+
"\[IndentingNewLine]", "\[IndentingNewLine]",
235246
RowBox[{"tmpDir", "=",
236247
RowBox[{"FileNameJoin", "[",
237248
RowBox[{"{",
238-
RowBox[{
239-
RowBox[{"NotebookDirectory", "[", "]"}], ",", "appName"}], "}"}],
240-
"]"}]}], ";", "\[IndentingNewLine]",
249+
RowBox[{"targetDir", ",", "appName"}], "}"}], "]"}]}], ";",
250+
"\[IndentingNewLine]",
241251
RowBox[{"If", "[",
242252
RowBox[{
243253
RowBox[{"DirectoryQ", "[", "tmpDir", "]"}], ",",
@@ -300,11 +310,9 @@ Cell[BoxData[{
300310
RowBox[{"creates", " ", ".", "zip"}], " ",
301311
RowBox[{"file", "."}]}], " ", "*)"}], "\[IndentingNewLine]",
302312
RowBox[{"If", "[",
303-
RowBox[{
304-
RowBox[{"Not", "@",
305-
RowBox[{"DirectoryQ", "[", "targetDir", "]"}]}], ",",
306-
RowBox[{"CreateDirectory", "[", "targetDir", "]"}]}], "]"}], ";",
307-
"\[IndentingNewLine]",
313+
RowBox[{"pacletQ", ",",
314+
RowBox[{"PackPaclet", "[", "tmpDir", "]"}]}], "]"}], ";",
315+
"\[IndentingNewLine]", "\[IndentingNewLine]",
308316
RowBox[{"file", "=",
309317
RowBox[{"CreateArchive", "[", "\[IndentingNewLine]",
310318
RowBox[{"tmpDir", ",", "\[IndentingNewLine]",
@@ -313,7 +321,7 @@ Cell[BoxData[{
313321
RowBox[{"targetDir", ",",
314322
RowBox[{"StringJoin", "[",
315323
RowBox[{
316-
"appName", ",", "\"\<_\>\"", ",", "version", ",", "extension",
324+
"appName", ",", "\"\<-\>\"", ",", "version", ",", "extension",
317325
",", "\"\<.zip\>\""}], "]"}]}], "}"}], "]"}]}],
318326
"\[IndentingNewLine]", "]"}]}], ";", "\[IndentingNewLine]",
319327
"\[IndentingNewLine]",
@@ -327,7 +335,7 @@ Cell[BoxData[{
327335
RowBox[{"Return", "[", "file", "]"}]}]}], "\[IndentingNewLine]",
328336
"]"}]}]}], "\[IndentingNewLine]", "]"}]}]}], "Input",
329337
InitializationCell->True,
330-
CellLabel->"In[20]:=",ExpressionUUID->"63aec28b-d38e-4e62-be48-217324e2e21b"]
338+
CellLabel->"In[32]:=",ExpressionUUID->"63aec28b-d38e-4e62-be48-217324e2e21b"]
331339
}, Closed]]
332340
}, Closed]],
333341

@@ -353,18 +361,18 @@ Cell[BoxData[
353361
RowBox[{"ParentDirectory", "@",
354362
RowBox[{"NotebookDirectory", "[", "]"}]}], ",", "\"\<Release\>\""}],
355363
"}"}], "]"}]}], ",", "\[IndentingNewLine]",
356-
RowBox[{"version", "=", "\"\<0.3.0\>\""}]}], "\[IndentingNewLine]",
364+
RowBox[{"version", "=", "\"\<0.3.1\>\""}]}], "\[IndentingNewLine]",
357365
"}"}], ",", "\[IndentingNewLine]",
358366
RowBox[{"buildRelease", "[",
359367
RowBox[{"releaseDir", ",", "version", ",", "\[IndentingNewLine]",
360368
RowBox[{"\"\<Build\>\"", "\[Rule]", "None"}]}], "\[IndentingNewLine]",
361369
"]"}]}], "\[IndentingNewLine]", "]"}]], "Input",
362-
CellLabel->"In[23]:=",ExpressionUUID->"76883db4-7326-4ddb-8f13-a8e36fb15d0f"]
370+
CellLabel->"In[35]:=",ExpressionUUID->"76883db4-7326-4ddb-8f13-a8e36fb15d0f"]
363371
}, Open ]]
364372
}, Open ]]
365373
},
366374
AutoGeneratedPackage->None,
367-
WindowSize->{1012, 1086},
375+
WindowSize->{983, 1086},
368376
WindowMargins->{{Automatic, -13}, {Automatic, 0}},
369377
FrontEndVersion->"11.3 for Microsoft Windows (64-bit) (March 6, 2018)",
370378
StyleDefinitions->"Default.nb"
@@ -403,14 +411,14 @@ Cell[4862, 136, 1469, 34, 248, "Input",ExpressionUUID->"7af28f76-d927-4513-ba61-
403411
Cell[CellGroupData[{
404412
Cell[6368, 175, 99, 0, 45, "Subsubsection",ExpressionUUID->"1ce70ee8-2311-4307-b7a1-b037ea97aeeb"],
405413
Cell[6470, 177, 385, 5, 99, "Text",ExpressionUUID->"6dc97f5e-8f26-4b18-9563-bc256d99c821"],
406-
Cell[6858, 184, 6296, 145, 1280, "Input",ExpressionUUID->"63aec28b-d38e-4e62-be48-217324e2e21b",
414+
Cell[6858, 184, 6696, 153, 1376, "Input",ExpressionUUID->"63aec28b-d38e-4e62-be48-217324e2e21b",
407415
InitializationCell->True]
408416
}, Closed]]
409417
}, Closed]],
410418
Cell[CellGroupData[{
411-
Cell[13203, 335, 92, 0, 46, "Subsection",ExpressionUUID->"2d1e6de4-2552-47a3-ac1f-7684442f7a5d"],
412-
Cell[13298, 337, 246, 4, 71, "Text",ExpressionUUID->"2ad44800-63c7-4bbf-bc29-8ec8525f41e6"],
413-
Cell[13547, 343, 809, 18, 204, "Input",ExpressionUUID->"76883db4-7326-4ddb-8f13-a8e36fb15d0f"]
419+
Cell[13603, 343, 92, 0, 46, "Subsection",ExpressionUUID->"2d1e6de4-2552-47a3-ac1f-7684442f7a5d"],
420+
Cell[13698, 345, 246, 4, 71, "Text",ExpressionUUID->"2ad44800-63c7-4bbf-bc29-8ec8525f41e6"],
421+
Cell[13947, 351, 809, 18, 204, "Input",ExpressionUUID->"76883db4-7326-4ddb-8f13-a8e36fb15d0f"]
414422
}, Open ]]
415423
}, Open ]]
416424
}

0 commit comments

Comments
 (0)