Skip to content

Commit 9d095a8

Browse files
Renaming template files
1 parent 8b008cd commit 9d095a8

24 files changed

+20
-30
lines changed

Dockerfile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
66
ARG BUILD_CONFIGURATION=Release
77
ARG TAG_VERSION
88
WORKDIR /src
9-
COPY ["src/[ApplicationNameUpperCamelCase]/[ApplicationNameUpperCamelCase].csproj", "src/[ApplicationNameUpperCamelCase]/"]
10-
RUN dotnet restore "src/[ApplicationNameUpperCamelCase]/[ApplicationNameUpperCamelCase].csproj"
9+
COPY ["src/TwitchStreamingTools/TwitchStreamingTools.csproj", "src/TwitchStreamingTools/"]
10+
RUN dotnet restore "src/TwitchStreamingTools/TwitchStreamingTools.csproj"
1111
COPY src/ .
12-
WORKDIR "/src/[ApplicationNameUpperCamelCase]"
13-
RUN dotnet build "[ApplicationNameUpperCamelCase].csproj" -p:Version="$TAG_VERSION" -c $BUILD_CONFIGURATION -o /app/build
12+
WORKDIR "/src/TwitchStreamingTools"
13+
RUN dotnet build "TwitchStreamingTools.csproj" -p:Version="$TAG_VERSION" -c $BUILD_CONFIGURATION -o /app/build
1414

1515
FROM build AS publish
1616
ARG BUILD_CONFIGURATION=Release
@@ -20,8 +20,8 @@ ARG DESCRIPTION
2020
RUN apt-get update && apt-get dist-upgrade -y && apt-get install zip jq -y
2121

2222
# Generate the executables
23-
RUN dotnet publish "[ApplicationNameUpperCamelCase].csproj" -p:Version="$TAG_VERSION" -c $BUILD_CONFIGURATION -o /app/publish/win-x64 -r win-x64
24-
RUN dotnet publish "[ApplicationNameUpperCamelCase].csproj" -p:Version="$TAG_VERSION" -c $BUILD_CONFIGURATION -o /app/publish/win-x86 -r win-x86
23+
RUN dotnet publish "TwitchStreamingTools.csproj" -p:Version="$TAG_VERSION" -c $BUILD_CONFIGURATION -o /app/publish/win-x64 -r win-x64
24+
RUN dotnet publish "TwitchStreamingTools.csproj" -p:Version="$TAG_VERSION" -c $BUILD_CONFIGURATION -o /app/publish/win-x86 -r win-x86
2525
RUN cd /app/publish/win-x64 && zip -r ../windows-x64.zip *
2626
RUN cd /app/publish/win-x86 && zip -r ../windows-x86.zip *
2727

@@ -31,7 +31,7 @@ RUN curl -L \
3131
-X POST \
3232
-H "Accept: application/vnd.github+json" \
3333
-H "Authorization: Bearer $GITHUB_TOKEN" \
34-
https://api.github.com/repos/[GitOwnerAndRepoName]/releases \
34+
https://api.github.com/repos/nullinside-development-group/twitch-streaming-tools/releases \
3535
-d '{"tag_name":"'$TAG_VERSION'","target_commitish":"main","name":"'$TAG_VERSION'","body":"'$DESCRIPTION'","draft":false,"prerelease":false,"generate_release_notes":false}'
3636

3737
# Upload the files to the release. We need to get the ID for the release we created first and then upload the zips.
@@ -40,20 +40,20 @@ RUN curl -L \
4040
RUN export RELEASE_ID=$(curl -L \
4141
-H "Accept: application/vnd.github+json" \
4242
-H "Authorization: Bearer $GITHUB_TOKEN" \
43-
"https://api.github.com/repos/[GitOwnerAndRepoName]/releases/latest" \
43+
"https://api.github.com/repos/nullinside-development-group/twitch-streaming-tools/releases/latest" \
4444
| jq .id) && \
4545
echo "Release ID: "$RELEASE_ID && \
4646
curl -L \
4747
-X POST \
4848
-H "Accept: application/vnd.github+json" \
4949
-H "Authorization: Bearer $GITHUB_TOKEN" \
5050
-H "Content-Type: application/octet-stream" \
51-
"https://uploads.github.com/repos/[GitOwnerAndRepoName]/releases/$RELEASE_ID/assets?name=windows-x64.zip" \
51+
"https://uploads.github.com/repos/nullinside-development-group/twitch-streaming-tools/releases/$RELEASE_ID/assets?name=windows-x64.zip" \
5252
--data-binary "@/app/publish/windows-x64.zip" && \
5353
curl -L \
5454
-X POST \
5555
-H "Accept: application/vnd.github+json" \
5656
-H "Authorization: Bearer $GITHUB_TOKEN" \
5757
-H "Content-Type: application/octet-stream" \
58-
"https://uploads.github.com/repos/[GitOwnerAndRepoName]/releases/$RELEASE_ID/assets?name=windows-x86.zip" \
58+
"https://uploads.github.com/repos/nullinside-development-group/twitch-streaming-tools/releases/$RELEASE_ID/assets?name=windows-x86.zip" \
5959
--data-binary "@/app/publish/windows-x86.zip"

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pipeline {
77
stages {
88
stage('Checkout') {
99
steps {
10-
git branch: env.BRANCH_NAME, credentialsId: 'GitHub PAT', url: 'https://github.com/[GitOwnerAndRepoName].git'
10+
git branch: env.BRANCH_NAME, credentialsId: 'GitHub PAT', url: 'https://github.com/nullinside-development-group/twitch-streaming-tools.git'
1111
}
1212
}
1313

README.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
# nullinside-template-desktop-gui
1+
# twitch-streaming-tools
22

3-
This is a template for creating desktop applications for C# using Avalonia.
4-
5-
## Setup
6-
7-
1. When creating a new git repo you can select the `nullinside-template-desktop-gui` project as your template.
8-
2. Perform a rename through the application files for the following:
9-
1. `[ApplicationNameUpperCamelCase]`: The desired name of the application in UpperCamelCase format.
10-
2. `[GitOwnerAndRepoName]`: The github owner and repo combination name. (Ex: `nullinside-development-group/nullinside-site-monitor`)
11-
3. Update the namespaces in the application using an IDE.
12-
4. Update the name of the documentation file in the project settings under Debug and Release
13-
5. Update the git repo location in the new version dialog's view model: https://github.com/nullinside-development-group/nullinside-template-desktop-gui/blob/main/src/%5BApplicationNameUpperCamelCase%5D/ViewModels/NewVersionWindowViewModel.cs#L44
3+
Tools to aid twitch streamers.

go.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
export TAG_VERSION=$(git tag --points-at HEAD)
44
if [[ -z "$TAG_VERSION" ]]; then
55
# Get the latest version for the repo
6-
export CURRENT_VERSION=$(curl "https://api.github.com/repos/[GitOwnerAndRepoName]/tags" | jq -r '.[0].name')
6+
export CURRENT_VERSION=$(curl "https://api.github.com/repos/nullinside-development-group/twitch-streaming-tools/tags" | jq -r '.[0].name')
77
major=1
88
minor=0
99
build=-1

src/[ApplicationNameUpperCamelCase].sln renamed to src/TwitchStreamingTools.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionFolder", "SolutionF
1111
EndProject
1212
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nullinside.Api.Common", "nullinside-api\src\Nullinside.Api.Common\Nullinside.Api.Common.csproj", "{D9EF6294-DF13-4901-B7EF-2DBC50B9E4E1}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "[ApplicationNameUpperCamelCase]", "[ApplicationNameUpperCamelCase]\[ApplicationNameUpperCamelCase].csproj", "{D16A0A78-91C3-4098-AF67-2AD287522274}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TwitchStreamingTools", "TwitchStreamingTools\TwitchStreamingTools.csproj", "{D16A0A78-91C3-4098-AF67-2AD287522274}"
1515
EndProject
1616
Global
1717
GlobalSection(SolutionConfigurationPlatforms) = preSolution
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)