Skip to content
This repository was archived by the owner on Sep 30, 2023. It is now read-only.

Commit f0eaba7

Browse files
committed
chore: use platform-specific folders for release
1 parent aae6c87 commit f0eaba7

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

Commands/SelfUpdate.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private static void CreateRunners()
117117
if exist %~dp0\dotnet\cm_new.exe (
118118
copy %~dp0\dotnet\cm_new.exe %~dp0\dotnet\cm.exe /Y > nul
119119
del %~dp0\dotnet\cm_new.exe > nul
120-
)
120+
)
121121
)
122122
cmd /C exit %exit_code% > nul";
123123

@@ -135,7 +135,7 @@ private static void CreateRunners()
135135
if [ -f ~/bin/dotnet/linux-x64/cm ];
136136
then
137137
cp ~/bin/dotnet/linux-x64/cm ~/bin/dotnet/cm.exe
138-
rm ~/bin/dotnet/linux-x64/cm
138+
rm ~/bin/dotnet/linux-x64/cm
139139
else
140140
if [ -f ~/bin/dotnet/cm_new.exe ]
141141
then
@@ -155,7 +155,7 @@ chmod u+x ~/bin/dotnet/cm.exe
155155
if [ -f ~/bin/dotnet/osx-x64/cm ];
156156
then
157157
cp ~/bin/dotnet/osx-x64/cm ~/bin/dotnet/cm.exe
158-
rm ~/bin/dotnet/osx-x64/cm
158+
rm ~/bin/dotnet/osx-x64/cm
159159
else
160160
if [ -f ~/bin/dotnet/cm_new.exe ]
161161
then
@@ -436,4 +436,4 @@ private void InstallBashScript()
436436
File.WriteAllLines(file, lines);
437437
}
438438
}
439-
}
439+
}

README-commands.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -327,21 +327,21 @@
327327
show lines contains "new Class" or "Class.New" in modules linked to the current, only in *.cs files
328328

329329
### cm pack
330-
331-
Packs project to nuget package.
332-
Replaces file references to package references in csproj file and runs 'dotnet pack' command.
333-
Allows to publish nuget package to use outside of cement.
334-
Searches cement deps in nuget by module name.
335-
336-
Usage:
337-
cm pack [-v|--verbose|-w|-W|--warnings] [-p|--progress] [-c configName] <project-file>
338-
-c/--configuration - build package for specific configuration
339-
340-
-v/--verbose - show full msbuild output
341-
-w/--warnings - show warnings
342-
-W - show only obsolete warnings
343-
344-
-p/--progress - show msbuild output in one line
330+
331+
Packs project to nuget package.
332+
Replaces file references to package references in csproj file and runs 'dotnet pack' command.
333+
Allows to publish nuget package to use outside of cement.
334+
Searches cement deps in nuget by module name.
335+
336+
Usage:
337+
cm pack [-v|--verbose|-w|-W|--warnings] [-p|--progress] [-c configName] <project-file>
338+
-c/--configuration - build package for specific configuration
339+
340+
-v/--verbose - show full msbuild output
341+
-w/--warnings - show warnings
342+
-W - show only obsolete warnings
343+
344+
-p/--progress - show msbuild output in one line
345345

346346

347347
### cm status

appveyor.yml

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ build:
1414
after_build:
1515
- mkdir dotnet
1616
- copy Cement.Net\bin\Debug\cm.exe dotnet\cm.exe
17+
- mkdir dotnet\win10-x64
18+
- copy Cement.Net\bin\Debug\cm.exe dotnet\win10-x64\cm.exe
19+
- mkdir dotnet\linux-x64
20+
- copy Cement.Net\bin\Debug\cm.exe dotnet\linux-x64\cm
21+
- mkdir dotnet\osx-x64
22+
- copy Cement.Net\bin\Debug\cm.exe dotnet\osx-x64\cm
1723
- copy Cement.Net\bin\Debug\cm.exe.config dotnet\cm.exe.config
1824
- xcopy files-common dotnet /s /i /Y
1925
- 7z a %APPVEYOR_REPO_COMMIT%.zip dotnet

0 commit comments

Comments
 (0)