Skip to content

Commit

Permalink
update files
Browse files Browse the repository at this point in the history
  • Loading branch information
coopeeo authored Jun 20, 2024
1 parent fe46011 commit ee07e2c
Show file tree
Hide file tree
Showing 10 changed files with 132 additions and 189 deletions.
56 changes: 28 additions & 28 deletions .github/workflow-scripts/get-info.py
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
import json
import hashlib
import os
import sys
import zipfile
import urllib.request
import re
from pathlib import Path
import subprocess



archive = zipfile.ZipFile('beat.click-sound.geode', 'r')
eee = archive.open('changelog.md')
eeee = []
for eeeee in eee:
eeee.append(eeeee.decode('utf-8'))

eeeeee = ''.join(eeee)

one = ('## ' + eeeeee.split('##')[1]).replace((eeeeee.split('##')[1]).split('\r')[0], 'What\'s New This Update').replace('\n', "")
two = json.loads(archive.read('mod.json'))["version"].replace("v","")

if os.getenv('GITHUB_OUTPUT'):
with open(os.getenv('GITHUB_OUTPUT'), 'a') as file:
file.write(f'cl={one}\n')
if os.getenv('GITHUB_OUTPUT'):
with open(os.getenv('GITHUB_OUTPUT'), 'a') as file:
import json
import hashlib
import os
import sys
import zipfile
import urllib.request
import re
from pathlib import Path
import subprocess



archive = zipfile.ZipFile('beat.click-sound.geode', 'r')
eee = archive.open('changelog.md')
eeee = []
for eeeee in eee:
eeee.append(eeeee.decode('utf-8'))

eeeeee = ''.join(eeee)

one = ('## ' + eeeeee.split('##')[1]).replace((eeeeee.split('##')[1]).split('\r')[0], 'What\'s New This Update').replace('\n', "")
two = json.loads(archive.read('mod.json'))["version"].replace("v","")

if os.getenv('GITHUB_OUTPUT'):
with open(os.getenv('GITHUB_OUTPUT'), 'a') as file:
file.write(f'cl={one}\n')
if os.getenv('GITHUB_OUTPUT'):
with open(os.getenv('GITHUB_OUTPUT'), 'a') as file:
file.write(f'version={two}\n')
15 changes: 10 additions & 5 deletions .github/workflow-scripts/send-to-testers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@


archive = zipfile.ZipFile('beat.click-sound.geode', 'r')
e = json.loads(archive.read('mod.json'))
modjson = json.loads(archive.read('mod.json'))
changelog = archive.read('changelog.md')
file_list = archive.namelist()



def send_webhook(eee):
def send_webhook(modjson, changelog):
import requests
import json
import os

thePing = "\n## Testers: <@&"
thePing = "\n## Testers: <@"

leping = {
'all': '1210765582685966387',
Expand All @@ -31,9 +32,13 @@ def send_webhook(eee):
else:
thePing = ""

changelog = changelog.split("##")[1]
changelogsplit = changelog.split("\n")
changelog = "\n".join(changelogsplit[1:(len(changelogsplit) - 1)])

data = {
'content': "# New Test for v" + eee["version"].replace("v","") + thePing + "\n" + os.getenv('DESC')
'content': "# New Test for v" + modjson["version"].replace("v","") + thePing + "\n## What to test\n- " + os.getenv('DESC').replace("\\n", "\n") + "\n## Changelog: \n" + changelog
}
requests.post(os.getenv('DISCORD_WEBHOOK_URL'), data=data, files={"file": open('beat.click-sound.geode', "rb")})

send_webhook(e)
send_webhook(modjson, changelog)
18 changes: 10 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
- name: Windows
os: windows-latest

- name: macOS
os: macos-latest
#- name: macOS
# os: macos-latest

- name: iOS
os: macos-latest
target: iOS
#- name: iOS
# os: macos-latest
# target: iOS

- name: Android 32-bit
os: ubuntu-latest
Expand All @@ -43,7 +43,8 @@ jobs:
- uses: actions/checkout@v4

- name: Build the mod
uses: RoootTheFox/build-geode-mod@main
#uses: RoootTheFox/build-geode-mod@main
uses: geode-sdk/build-geode-mod@main
with:
combine: true
sdk: nightly
Expand All @@ -55,10 +56,11 @@ jobs:
needs: ['build']

steps:
- uses: RoootTheFox/build-geode-mod@combine
#- uses: RoootTheFox/build-geode-mod/combine@main
- uses: geode-sdk/build-geode-mod/combine@main
id: build

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Build Output
path: ${{ steps.build.outputs.build-output }}
2 changes: 1 addition & 1 deletion .github/workflows/draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Define variables
id: defvar
run: |
BRANCH=main
BRANCH=${GITHUB_REF#refs/heads/}
API_URL="https://api.github.com/repos/clicksounds/geode-clicksound/actions/workflows/build.yml/runs?per_page=1&branch=$BRANCH&status=success"
RUN_ID=$(curl $API_URL | jq .workflow_runs[0].id)
echo "run_id=$RUN_ID" >> $GITHUB_OUTPUT
Expand Down
61 changes: 0 additions & 61 deletions .github/workflows/new-index-build.yml

This file was deleted.

22 changes: 21 additions & 1 deletion .github/workflows/testers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,26 @@ on:
- windows
- mac
- android
- ios (doesn't work yet)
# ping2:
# description: 'What testers should be pinged'
# required: false
# type: choice
# options:
# - windows
# - mac
# - android
# ping3:
# description: 'What testers should be pinged, if s'
# required: false
# type: choice
# options:
# - windows
# - mac
# - android
include-changelog:
description: 'Include Changelog at the bottom of the message'
type: bool
desc:
description: 'Description (what to test)'
required: false
Expand All @@ -30,7 +50,7 @@ jobs:
- name: Define variables
id: defvar
run: |
BRANCH=main
BRANCH=${GITHUB_REF#refs/heads/}
API_URL="https://api.github.com/repos/clicksounds/geode-clicksound/actions/workflows/build.yml/runs?per_page=1&branch=$BRANCH&status=success"
RUN_ID=$(curl $API_URL | jq .workflow_runs[0].id)
echo "run_id=$RUN_ID" >> $GITHUB_OUTPUT
Expand Down
37 changes: 15 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Click Sounds

Plays a click sound whenever you press a jump button, or (optionally) a release sound whenever you release a jump button.
If you want a new built-in click sound or feature to be added, join the [discord server](https://discord.gg/RwbRP8ADdc). <3
If you want a new built-in click sound or feature to be added, join the [discord server](https://discord.com/invite/mNY5QTMkMF). <3

### Uses Geode v2.0.0-beta.22 and Node-IDs v1.8.1
### Uses Geode v3.0.0-beta.1 and Node-IDs v1.12.0
Open the mod settings to change the click sound. Set the click sound to '0' to use a custom click sound.
## Click sounds:
### Useful click sounds (positive number):
Expand All @@ -27,23 +27,19 @@ Open the mod settings to change the click sound. Set the click sound to '0' to u
- 17 - Cursed Click
- 18 - Spacebar Click/Release
- 19 - Click 3
- 20 - Viper's Spacebar Click/Release (randomized)
- 21 - Logitech MX Anywhere 2S (randomized)
- 20 - Viper Spacebar Click/Release (randomized)
- 21 - Click/Release 5 (randomized)
- 22 - Zoink Click/Release
- 23 - Screen Tap 1
- 23 - Screen Tap 1
- 24 - Plate
- 25 - Neiro Click/Release
- 26 - Doggie
- 27 - Trusta
- 28 - Gazonk
- 29 - Sayo Device (randomized)
- 30 - Viper Mouse Clicks/Release (randomized)
- 30 - Viper's Clicks/Release (randomized)
- 31 - Logitech G502 Clicks/Release (randomized)
- 32 - Up arrow 4 Clicks/Release (randomized)
- 33 - Mouse Click/Release 6 (randomized)
- 34 - Pacity's Clicks/Release (randomized)
- 35 - Mouse Click/Release 7 (randomized)
- 36 - Electro Clicks/Release (randomized)
### Meme click sounds (negative number):
- 1 - FIRE IN THE HOLE!
- 2 - I loooove GD Cologne
Expand Down Expand Up @@ -88,25 +84,22 @@ Open the mod settings to change the click sound. Set the click sound to '0' to u
- 11 - Zoink Click/Release
- 12 - Neiro Click/Release
- 13 - Sayo Device (randomized)
- 14 - Viper Mouse Clicks/Release (randomized)
- 14 - Viper's Clicks/Release (randomized)
- 15 - Logitech G502 Clicks/Release
- 16 - Up arrow 4 Clicks/Release (randomized)
- 17 - Mouse Click 6
- 18 - Pacity's Clicks
- 19 - Mouse Click 7
- 20 - Electro Clicks
### Meme release sounds (negative number):
- 1 - TikTok

## Credit
Thank you so much to all of the people listed below for doing whatever they did to help create the mod!
- [Beat](https://github.com/BeatACVR) - This is me! I made the mod.
- [Viper](https://github.com/MuhXd) - Developer, helped me with android support :3
- [Cooper](https://github.com/coopeeo) - Developer, helped make coding the mod more efficient ^w^
- [Firee](https://github.com/FireMario211) - Added mac support, thank you so much!
- [Weebify](https://github.com/Weebifying) - Developer, helped with settings UI in v2.0.0 :3
- [Uproxide](https://github.com/uproxide) - Developer, helped with the developer badge system! OwO
- [Cooper](https://github.com/coopeeo) - Now Main Dev (Yep we went from 4 devs to 1 dev!)
- [Uproxide](https://github.com/uproxide) - Developer, helped with the developer badge system! OwO (Dev)

- [Beat](https://github.com/BeatACVR) - This is me! I made the mod. (Past Main Dev)
- [Viper](https://github.com/MuhXd) - Developer, helped me with android support :3 (Past Dev)
- [Firee](https://github.com/FireMario211) - Added mac support, thank you so much!
- [Weebify](https://github.com/Weebifying) - Developer :3 (Past Dev)
- [Jouca](https://github.com/Jouca) - Helped with the preview button
- Rue - Made the icon of Click Sounds (v1.6.0) >w<
- aceofspadesss - Provided a ton of unique click sounds for the mod! >w<
(If you think I forgot to credit you, DM @coopeeo on Discord. Credit is not given for asking a sound or feature request.)
(If you think I forgot to credit you, DM @coopeeo on Discord. Credit is not given for asking a sound or feature request.)
Loading

0 comments on commit ee07e2c

Please sign in to comment.