Skip to content

Commit ff396b3

Browse files
committed
feat(radar-client): adding unix support
1 parent cdac4f2 commit ff396b3

File tree

217 files changed

+376465
-376366
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+376465
-376366
lines changed
Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
name: Bug report
2-
description: Report errors or unexpected behavior
3-
title: "[Bug]"
4-
labels: [bug]
5-
body:
6-
- type: checkboxes
7-
attributes:
8-
label: 🔍 Is there already an issue for your problem?
9-
description: Please make sure you are not creating an already submitted <a href="https://github.com/Valthrun/Valthrun/issues">Issue</a>. Also check closed issue.
10-
options:
11-
- label: I have checked older issues, open and closed
12-
required: true
13-
- type: textarea
14-
attributes:
15-
label: ℹ Environment / Computer Info
16-
description: |
17-
Please provide the details of version installed.
18-
value: |
19-
- Controller version: (You can find this at the first log of controller.exe)
20-
- Describe the driver used: (e.g Kernel, Zenith, Usermode)
21-
- Grapic Card Used: (e.g AMD; Nvidia; Intel; Integrated Grapic Cards ~ Specific.)
22-
placeholder: |
23-
- Controller version: (You can find this at the first log of controller.exe)
24-
- Describe the driver used: (e.g Kernel, Zenith, Usermode)
25-
- Grapic Card Used: (e.g AMD; Nvidia; Intel; Integrated Grapic Cards ~ Specific.)
26-
render: Markdown
27-
validations:
28-
required: true
29-
- type: textarea
30-
attributes:
31-
label: 📝 Description
32-
description: |
33-
List steps to reproduce the error and details on what happens and what you expected to happen.
34-
placeholder: |
35-
1. Please number your steps to helps the readability of your instructions.
36-
37-
Feel free to write down additional notes you may want us to know.
38-
validations:
39-
required: true
40-
- type: textarea
41-
attributes:
42-
label: 📸 Screenshots
43-
description: Place any screenshots of the issue here if needed
44-
validations:
45-
required: false
1+
name: Bug report
2+
description: Report errors or unexpected behavior
3+
title: "[Bug]"
4+
labels: [bug]
5+
body:
6+
- type: checkboxes
7+
attributes:
8+
label: 🔍 Is there already an issue for your problem?
9+
description: Please make sure you are not creating an already submitted <a href="https://github.com/Valthrun/Valthrun/issues">Issue</a>. Also check closed issue.
10+
options:
11+
- label: I have checked older issues, open and closed
12+
required: true
13+
- type: textarea
14+
attributes:
15+
label: ℹ Environment / Computer Info
16+
description: |
17+
Please provide the details of version installed.
18+
value: |
19+
- Controller version: (You can find this at the first log of controller.exe)
20+
- Describe the driver used: (e.g Kernel, Zenith, Usermode)
21+
- Grapic Card Used: (e.g AMD; Nvidia; Intel; Integrated Grapic Cards ~ Specific.)
22+
placeholder: |
23+
- Controller version: (You can find this at the first log of controller.exe)
24+
- Describe the driver used: (e.g Kernel, Zenith, Usermode)
25+
- Grapic Card Used: (e.g AMD; Nvidia; Intel; Integrated Grapic Cards ~ Specific.)
26+
render: Markdown
27+
validations:
28+
required: true
29+
- type: textarea
30+
attributes:
31+
label: 📝 Description
32+
description: |
33+
List steps to reproduce the error and details on what happens and what you expected to happen.
34+
placeholder: |
35+
1. Please number your steps to helps the readability of your instructions.
36+
37+
Feel free to write down additional notes you may want us to know.
38+
validations:
39+
required: true
40+
- type: textarea
41+
attributes:
42+
label: 📸 Screenshots
43+
description: Place any screenshots of the issue here if needed
44+
validations:
45+
required: false
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
name: Feature Request
2-
description: Request a new feature or enhancement
3-
title: "[Enhancement]"
4-
labels: [enhancement]
5-
body:
6-
- type: textarea
7-
id: description
8-
attributes:
9-
label: 📝 Provide a description of the new feature
10-
description: What is the expected behavior of the proposed feature? What is the scenario this would be used?
11-
validations:
12-
required: true
13-
14-
- type: textarea
15-
id: additional-information
16-
attributes:
17-
label: ➕ Additional Information
18-
description: Give us some additional information on the feature request like proposed solutions, links, screenshots, etc.
19-
20-
- type: markdown
21-
attributes:
22-
value: If you'd like to see this feature implemented, add a 👍 reaction to this post.
1+
name: Feature Request
2+
description: Request a new feature or enhancement
3+
title: "[Enhancement]"
4+
labels: [enhancement]
5+
body:
6+
- type: textarea
7+
id: description
8+
attributes:
9+
label: 📝 Provide a description of the new feature
10+
description: What is the expected behavior of the proposed feature? What is the scenario this would be used?
11+
validations:
12+
required: true
13+
14+
- type: textarea
15+
id: additional-information
16+
attributes:
17+
label: ➕ Additional Information
18+
description: Give us some additional information on the feature request like proposed solutions, links, screenshots, etc.
19+
20+
- type: markdown
21+
attributes:
22+
value: If you'd like to see this feature implemented, add a 👍 reaction to this post.

.github/workflows/artifact_upload.sh

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ file_path="$2"
33
pdb_path="$3"
44

55
file_name=$(basename -- "$file_path")
6+
file_ext="${file_name##*.}"
7+
if [[ "$file_ext" -ne "" ]]; then
8+
file_ext=".$file_ext"
9+
fi
610

711
git_commit_shash=$(git rev-parse --short "$GITHUB_SHA")
812
git_branch=$(echo $GITHUB_REF | cut -d'/' -f 3)
@@ -20,16 +24,24 @@ if [ "$git_branch" = "release" ]; then
2024
version="$ARTIFACT_VERSION"
2125
fi
2226

27+
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
28+
artifact_track="$artifact_track-linux"
29+
fi
30+
2331
echo "Uploading $file_path"
2432
curl -H "Content-Type:multipart/form-data" \
2533
-X POST \
2634
-F "info={\"version\": \"$version\", \"versionHash\": \"$git_commit_shash\", \"updateLatest\": true }" \
27-
-F "payload=@$file_path; filename=${artifact}_${git_commit_shash}.${file_name##*.}" \
35+
-F "payload=@$file_path; filename=${artifact}_${git_commit_shash}$file_ext" \
2836
"https://valth.run/api/artifacts/$artifact/$artifact_track?api-key=$ARTIFACT_API_KEY" || exit 1
2937

30-
echo "Uploading $pdb_path"
31-
curl -H "Content-Type:multipart/form-data" \
32-
-X POST \
33-
-F "info={\"version\": \"$version\", \"versionHash\": \"$git_commit_shash\", \"updateLatest\": true }" \
34-
-F "payload=@$pdb_path; filename=$(basename -- "$pdb_path")" \
35-
"https://valth.run/api/artifacts/$artifact/$artifact_track-pdb?api-key=$ARTIFACT_API_KEY" || exit 1
38+
if [[ -f "$pdb_path" ]]; then
39+
echo "Uploading $pdb_path"
40+
curl -H "Content-Type:multipart/form-data" \
41+
-X POST \
42+
-F "info={\"version\": \"$version\", \"versionHash\": \"$git_commit_shash\", \"updateLatest\": true }" \
43+
-F "payload=@$pdb_path; filename=$(basename -- "$pdb_path")" \
44+
"https://valth.run/api/artifacts/$artifact/$artifact_track-pdb?api-key=$ARTIFACT_API_KEY" || exit 1
45+
else
46+
echo "No PDB path given. Skipping."
47+
fi
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
file_name="$1"
2-
upload_prefix="$2"
3-
4-
git_commit_shash=$(git rev-parse --short "$GITHUB_SHA")
5-
git_branch=$(echo $GITHUB_REF | cut -d'/' -f 3)
6-
curl -H 'Content-Type: multipart/form-data' \
7-
-X POST \
8-
-F "payload_json={\"content\": \"Automated release build for $git_commit_shash on $git_branch\"}" \
1+
file_name="$1"
2+
upload_prefix="$2"
3+
4+
git_commit_shash=$(git rev-parse --short "$GITHUB_SHA")
5+
git_branch=$(echo $GITHUB_REF | cut -d'/' -f 3)
6+
curl -H 'Content-Type: multipart/form-data' \
7+
-X POST \
8+
-F "payload_json={\"content\": \"Automated release build for $git_commit_shash on $git_branch\"}" \
99
-F "file=@$file_name; filename=${upload_prefix}_${git_commit_shash}.exe" $DISCORD_RELEASE_WEBHOOK

0 commit comments

Comments
 (0)