This commit is contained in:
Paul Schneider 2021-06-27 01:53:00 +01:00
commit 5de53a3cba
256 changed files with 22 additions and 22 deletions

10
.gitignore vendored
View file

@ -3,9 +3,9 @@
/obj/ /obj/
test/nuget.host.tests/bin/ test/nuget.host.tests/bin/
test/nuget.host.tests/obj test/nuget.host.tests/obj
src/nuget-host/bin/ src/appled/bin/
src/nuget-host/obj/ src/appled/obj/
src/nuget-cli/obj src/applec/obj
src/nuget-cli/bin src/applec/bin
.vscode/launch.json .vscode/launch.json
src/nuget-cli/.vscode/ src/applec/.vscode/

View file

@ -22,7 +22,7 @@ publish:
stage: deploy stage: deploy
artifacts: artifacts:
paths: paths:
- src/nuget-host/bin/Release/netcoreapp2.1/publish/ - src/appled/bin/Release/netcoreapp2.1/publish/
when: always when: always
script: script:
- dotnet publish --configuration Release - dotnet publish --configuration Release
@ -45,7 +45,7 @@ deploy-to-apple:
when: always when: always
script: script:
- dotnet pack --configuration Release --no-restore - dotnet pack --configuration Release --no-restore
- cd src/nuget-cli - cd src/applec
- dotnet run push -s $NUGETSOURCE -k $NUGETSOURCEAPIKEY ../*/bin/Release/*.nupkg - dotnet run push -s $NUGETSOURCE -k $NUGETSOURCEAPIKEY ../*/bin/Release/*.nupkg
environment: environment:
name: production name: production

6
.vscode/tasks.json vendored
View file

@ -31,7 +31,7 @@
"command": "msbuild", "command": "msbuild",
"type": "process", "type": "process",
"args": [ "args": [
"src/nuget-cli", "src/applec",
"/p:Configuration=Debug", "/p:Configuration=Debug",
"/property:GenerateFullPaths=true", "/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary", "/consoleloggerparameters:NoSummary",
@ -71,7 +71,7 @@
"command": "dotnet", "command": "dotnet",
"type": "process", "type": "process",
"args": [ "args": [
"${workspaceFolder}/bin/Debug/netcoreapp2.1/nuget-host.dll" "${workspaceFolder}/bin/Debug/netcoreapp2.1/appled.dll"
], ],
"problemMatcher": "$msCompile" "problemMatcher": "$msCompile"
}, },
@ -80,7 +80,7 @@
"command": "dotnet", "command": "dotnet",
"type": "process", "type": "process",
"args": [ "args": [
"bin/Debug/netcoreapp2.1/nuget-host.dll", "bin/Debug/netcoreapp2.1/appled.dll",
"/property:GenerateFullPaths=true", "/property:GenerateFullPaths=true",
"/restore" "/restore"
], ],

View file

@ -4,10 +4,10 @@
dotnet user-secrets set ConnectionStrings:DefaultConnection "Server=<lame-pgserver>;Port=<lame-pgport>;Database=<lame-dbname>;Username=<lame-dbusername>;Password=<lame-dbpass>;" dotnet user-secrets set ConnectionStrings:DefaultConnection "Server=<lame-pgserver>;Port=<lame-pgport>;Database=<lame-dbname>;Username=<lame-dbusername>;Password=<lame-dbpass>;"
nuget-host& appled&
# get an api-key from <http://localhost:5000/ApkKeys> # get an api-key from <http://localhost:5000/ApkKeys>
nuget-cli push -k <lame-api-key> -s http://localhost:5000/packages your-lame-versionned.nupkg applec push -k <lame-api-key> -s http://localhost:5000/packages your-lame-versionned.nupkg
```` ````

View file

@ -9,9 +9,9 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nuget.host.tests", "test\nu
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{E8A2DF68-847A-4D88-B002-64FB666F696C}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{E8A2DF68-847A-4D88-B002-64FB666F696C}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nuget-host", "src\nuget-host\nuget-host.csproj", "{468DB0E4-6221-4E01-BEFF-F452865E59C1}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "appled", "src\appled\appled.csproj", "{468DB0E4-6221-4E01-BEFF-F452865E59C1}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nuget-cli", "src\nuget-cli\nuget-cli.csproj", "{910E800A-59AE-46C4-B7C7-879986179246}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "applec", "src\applec\applec.csproj", "{910E800A-59AE-46C4-B7C7-879986179246}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution

View file

@ -61,7 +61,7 @@ start() {
else else
cd $ROOT cd $ROOT
log_daemon_msg "Starting service $NAME for user $WWW_USER" log_daemon_msg "Starting service $NAME for user $WWW_USER"
if ! start-stop-daemon -SbmCv -u $WWW_USER -p $PIDFILE -d $ROOT -g www-data -x /usr/bin/dotnet nuget-host.dll run > "${LOGDIR}/kestrel-${NAME}.log" if ! start-stop-daemon -SbmCv -u $WWW_USER -p $PIDFILE -d $ROOT -g www-data -x /usr/bin/dotnet appled.dll run > "${LOGDIR}/kestrel-${NAME}.log"
then then
log_daemon_msg "Could not start $NAME : $?, see ${LOGDIR}/kestrel-${NAME}.log" log_daemon_msg "Could not start $NAME : $?, see ${LOGDIR}/kestrel-${NAME}.log"
log_end_msg 2 log_end_msg 2

View file

@ -2,6 +2,6 @@ namespace nuget_cli
{ {
internal static class Constants internal static class Constants
{ {
internal const string ClientVersion = "nuget-cli v1.0"; internal const string ClientVersion = "applec v1.0";
} }
} }

View file

@ -107,9 +107,9 @@ namespace nuget_cli
catch (OptionException e) catch (OptionException e)
{ {
// output some error message // output some error message
Console.Write("nuget-cli: "); Console.Write("applec: ");
Console.WriteLine(e.Message); Console.WriteLine(e.Message);
Console.WriteLine("Try `nuget-cli --help' for more information."); Console.WriteLine("Try `applec --help' for more information.");
return 2; return 2;
} }

View file

@ -36,8 +36,8 @@ namespace nuget_host.Controllers
} }
const string defaultSemVer = "2.0.0"; const string defaultSemVer = "2.0.0";
// dotnet add . package -s http://localhost:5000/packages nuget-cli // dotnet add . package -s http://localhost:5000/packages applec
// packages/FindPackagesById()?id='nuget-cli'&semVerLevel=2.0.0 // packages/FindPackagesById()?id='applec'&semVerLevel=2.0.0
// Search // Search
// GET {@id}?q={QUERY}&skip={SKIP}&take={TAKE}&prerelease={PRERELEASE}&semVerLevel={SEMVERLEVEL}&packageType={PACKAGETYPE} // GET {@id}?q={QUERY}&skip={SKIP}&take={TAKE}&prerelease={PRERELEASE}&semVerLevel={SEMVERLEVEL}&packageType={PACKAGETYPE}

Some files were not shown because too many files have changed in this diff Show more