Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
e1df250
made changes
Luna115-onCode Jun 7, 2025
fd48d86
modified package dependencies
Luna115-onCode Jun 7, 2025
937d3e2
Updated Angular version and Added PWA capability
Luna115-onCode Jun 7, 2025
ab8fd3b
Created workflow for auto-deploy to GH pages
Luna115-onCode Jun 7, 2025
850ac9e
Fixed wrong pwa icons path
Luna115-onCode Jun 7, 2025
a43545a
Fixed wrong favicon path
Luna115-onCode Jun 7, 2025
4e72e6c
fixed deleting other envs folders
Luna115-onCode Jun 7, 2025
eb8b69e
Merge branch 'testing' into development
Luna115-onCode Jun 7, 2025
94e7f06
fixed deleting other envs folders
Luna115-onCode Jun 7, 2025
7b03556
fixed deleting other envs folders
Luna115-onCode Jun 7, 2025
89695b5
test
Luna115-onCode Jun 7, 2025
2874734
trying to fix development and test envs unaccesible and removed unnec…
Luna115-onCode Jun 7, 2025
a4c519a
trying to fix development and test envs unaccesible and removed unnec…
Luna115-onCode Jun 7, 2025
f86cb08
fixed deleting other envs folders
Luna115-onCode Jun 7, 2025
01eb62b
deleted loop created on dev and test routes
Luna115-onCode Jun 7, 2025
01a8b7d
Merge branch 'testing' into development
Luna115-onCode Jun 7, 2025
1d211c3
fixed?
Luna115-onCode Jun 7, 2025
6701767
Merge branch 'testing' into development
Luna115-onCode Jun 7, 2025
28240fd
Fixed prod deployment
Luna115-onCode Jun 7, 2025
6aaed4b
Merge branch 'testing' into development
Luna115-onCode Jun 7, 2025
110562c
merge
Luna115-onCode Jun 7, 2025
0e7348a
don't develop from mobile
Luna115-onCode Jun 7, 2025
da3b965
Merge branch 'testing' into development
Luna115-onCode Jun 7, 2025
a139e37
Fixing fail status when no changes to commit
Luna115-onCode Jun 7, 2025
669d3e5
Fixed missing font
Luna115-onCode Jun 8, 2025
bf017a0
fixed typo
Luna115-onCode Jun 8, 2025
3163cb2
Removed legacy code and moved to angular
Luna115-onCode Jul 29, 2026
8ebce6d
feat: implement multi-environment CI/CD deployment pipeline with PWA …
Luna115-onCode Jul 29, 2026
698216d
feat: add GitHub Actions workflow to automate multi-environment deplo…
Luna115-onCode Jul 29, 2026
ed6758b
feat: add GitHub Actions workflow for automated multi-environment dep…
Luna115-onCode Jul 29, 2026
773d79e
feat: implement internationalization architecture and define game ass…
Luna115-onCode Jul 29, 2026
f577f84
feat: add GitHub Actions workflow to automate deployment to GitHub Pages
Luna115-onCode Jul 29, 2026
f4c2cf3
feat: add GitHub Actions workflow to automate deployment to GitHub Pages
Luna115-onCode Jul 29, 2026
bc49c50
feat: add GitHub Actions workflow to automate deployment to GitHub Pages
Luna115-onCode Jul 29, 2026
0ddee0f
feat: add browser input prevention to AppComponent and configure GitH…
Luna115-onCode Jul 29, 2026
78d376a
feat: implement multi-page UI architecture with themes and offline su…
Luna115-onCode Jul 30, 2026
8485f46
feat: add closet.json to define available skins, sounds, and music as…
Luna115-onCode Jul 30, 2026
a50b6de
feat: implement shop page with multilingual support and associated se…
Luna115-onCode Jul 30, 2026
b1e5181
feat: implement block breaker game with complete assets and definitions
Luna115-onCode Jul 31, 2026
a023c41
Add files via upload
Luna115-onCode Jul 31, 2026
87beda1
Add files via upload
Luna115-onCode Jul 31, 2026
621d949
Add files via upload
Luna115-onCode Jul 31, 2026
0664b1d
feat: add multi-game framework with components for magic sort, spiral…
Luna115-onCode Aug 1, 2026
de4c218
feat: implement new game engine structure with multiple integrated HT…
Luna115-onCode Aug 1, 2026
ef55072
Add files via upload
Luna115-onCode Aug 1, 2026
3e6d5f9
Add files via upload
Luna115-onCode Aug 2, 2026
864ed1f
feat: implement new game components and add support for attack hole, …
Luna115-onCode Aug 5, 2026
e36af91
feat: implement Spiral Roll game and add game assets for Attack Hole
Luna115-onCode Aug 5, 2026
58805fe
implement attack_hole game with Three.js engine and associated assets
Luna115-onCode Aug 6, 2026
c80158f
feat: integrate Capacitor Electron for cross-platform support and add…
Luna115-onCode Aug 8, 2026
4dc88cf
Fixed deploy
Luna115-onCode Aug 8, 2026
530719a
Updated NODE.js
Luna115-onCode Aug 8, 2026
c361ad1
feat: add Spiral Roll and Tack Colors games with CI/CD deployment and…
Luna115-onCode Aug 8, 2026
84f219f
feat: initialize Electron project structure and add placeholder game …
Luna115-onCode Aug 8, 2026
c16b2a5
feat: add CI/CD deployment workflow, electron-builder configuration, …
Luna115-onCode Aug 8, 2026
ec794f3
feat: add spiral roll, tack colors game prototypes and electron packa…
Luna115-onCode Aug 8, 2026
016342b
feat: initialize Electron desktop environment and add basic browser-b…
Luna115-onCode Aug 8, 2026
821396d
feat: add Spiral Roll game, Tack Colors game, and CI/CD deployment wo…
Luna115-onCode Aug 8, 2026
27db36a
feat: add spiral roll and tack color game prototypes with deployment …
Luna115-onCode Aug 8, 2026
c771412
Refactor deploy workflow for specific URLs and assets
Luna115-onCode Aug 8, 2026
a0c893e
Add files via upload
Luna115-onCode Aug 8, 2026
5c9adb2
rollback
Luna115-onCode Aug 9, 2026
bd38a02
feat: initialize game project with build configuration, base assets, …
Luna115-onCode Aug 9, 2026
74a3873
feat: initialize stack-based game prototype and CI/CD deployment conf…
Luna115-onCode Aug 9, 2026
e2bac20
ci: add automated deployment workflow and include new minigame HTML f…
Luna115-onCode Aug 9, 2026
676080d
feat: implement base gameplay for Stack Colors and Spiral Roll web ga…
Luna115-onCode Aug 9, 2026
8f3355c
feat: add app configuration, CI/CD deployment, and two new game proto…
Luna115-onCode Aug 9, 2026
1f95f2d
feat: implement Spiral Roll game, add placeholder tack colors game, a…
Luna115-onCode Aug 9, 2026
4d9911e
feat: deployment pipeline
Luna115-onCode Aug 9, 2026
cc71c2a
feat: implement automated CI/CD pipeline for web and mobile deployment
Luna115-onCode Aug 9, 2026
78b7a1e
feat: add basic deployment configuration, and TWA manifest
Luna115-onCode Aug 9, 2026
d468fb6
feat: implement CI/CD deployment workflow
Luna115-onCode Aug 9, 2026
02f063f
feat:project deployment configuration
Luna115-onCode Aug 9, 2026
38a9b2b
feat: CI/CD and Electron configuration
Luna115-onCode Aug 10, 2026
82a6918
feat: implement CI/CD deployment workflow and add electron-builder co…
Luna115-onCode Aug 10, 2026
5631148
new localized content, audio, and customization assets.
Luna115-onCode Aug 10, 2026
99fd73a
feat: implement gallery component, add Spanish/English language files…
Luna115-onCode Aug 10, 2026
785e3d5
feat: add automated deployment workflow
Luna115-onCode Aug 11, 2026
23af535
Fixed deployment compilation
Luna115-onCode Aug 12, 2026
1d5c576
feat: add Spiral Roll and Stack Colors mini-games with localization s…
Luna115-onCode Aug 12, 2026
e0edaae
feat: add multi-environment CI/CD workflow for web, Android, and Linu…
Luna115-onCode Aug 12, 2026
e8dd9ff
Replace png-to-ico command with npx
Luna115-onCode Aug 12, 2026
cc18c9b
Update deploy.yml to handle asset preparation
Luna115-onCode Aug 12, 2026
8b0db42
Refactor dependency installation in deploy.yml
Luna115-onCode Aug 12, 2026
d094097
Enhance dependency installation in deploy workflow
Luna115-onCode Aug 12, 2026
953ccfe
Refactor dependency installation to PowerShell
Luna115-onCode Aug 12, 2026
3d1f502
Modify deploy.yml to generate ICO files
Luna115-onCode Aug 13, 2026
1ae3631
Fix indentation in deploy.yml for environment configs
Luna115-onCode Aug 13, 2026
39e61e1
Refactor png-to-ico import in deploy.yml
Luna115-onCode Aug 13, 2026
019ebef
Add additional icon files to deploy workflow
Luna115-onCode Aug 20, 2026
39bb7a4
feat: implement constants service, game modules, and asset gallery fo…
Luna115-onCode Aug 20, 2026
9102bd6
feat: implement game shop system with currency, boosters, character s…
Luna115-onCode Aug 21, 2026
7a3c9c9
Merge branch 'testing' of https://github.com/Luna115-onCode/CheemsBon…
Luna115-onCode Aug 21, 2026
cb78198
Remove styles.css copy step in deploy workflow
Luna115-onCode Aug 21, 2026
17b97fd
Delete .pwa/styles-prod.css
Luna115-onCode Aug 21, 2026
aefa970
Delete .pwa/styles-dev.css (#18)
Luna115-onCode Aug 21, 2026
b4bff83
Delete .pwa/styles-test.css
Luna115-onCode Aug 21, 2026
6b4075e
Adjust costCoins for shop items
Luna115-onCode Aug 22, 2026
4e79768
Update shop.json with new cost values
Luna115-onCode Aug 22, 2026
630c2e4
Rename asset group and modify resources in config
Luna115-onCode Aug 22, 2026
5f3b245
Enable context menu prevention on right-click
Luna115-onCode Aug 22, 2026
88e11b2
Enhance app.config.ts for PWA support
Luna115-onCode Aug 22, 2026
6c82d95
Refactor AppComponent to use appConfig for setup
Luna115-onCode Aug 22, 2026
a710bd4
Implement PWA asset caching on app installation
Luna115-onCode Aug 22, 2026
9acccc1
tool for converting images
Luna115-onCode Aug 23, 2026
85320d2
Merge branch 'development' of https://github.com/Luna115-onCode/Cheem…
Luna115-onCode Aug 23, 2026
133f438
removed png images to webp images
Luna115-onCode Aug 23, 2026
a82d42a
add audio convertion script
Luna115-onCode Aug 23, 2026
ae9335b
feat: add new music and SFX assets and update audio conversion script…
Luna115-onCode Aug 24, 2026
bcf4052
updated file references
Luna115-onCode Aug 24, 2026
d26b2e3
feat: add redeem system, gallery component, navbar, and core services…
Luna115-onCode Aug 24, 2026
5f6e269
feat: add GitHub Actions workflow for multi-environment CI/CD and ver…
Luna115-onCode Aug 24, 2026
0fa1020
feat: add GitHub Actions workflow for multi-environment deployment an…
Luna115-onCode Aug 24, 2026
a0f0b39
feat: initialize Electron main process entry point for Capacitor inte…
Luna115-onCode Aug 24, 2026
8ccf357
feat: integrate Electron support with Capacitor and implement offline…
Luna115-onCode Aug 24, 2026
de0525e
Merge branch 'testing' of https://github.com/Luna115-onCode/CheemsBon…
Luna115-onCode Aug 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
<<<<<<< HEAD
- name: Set App Version
run: node -e "const fs = require('fs'); const ver = fs.readFileSync('ver', 'utf8').trim(); const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); pkg.version = ver + '.${{ github.run_number }}'; fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2)); if(fs.existsSync('electron/package.json')){const epkg = JSON.parse(fs.readFileSync('electron/package.json', 'utf8')); epkg.version = pkg.version; fs.writeFileSync('electron/package.json', JSON.stringify(epkg, null, 2));} console.log('Version set to ' + pkg.version);"
=======
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
Expand Down Expand Up @@ -149,6 +154,11 @@ jobs:
app_type: [bundled, pwa]
steps:
- uses: actions/checkout@v4
<<<<<<< HEAD
- name: Set App Version
run: node -e "const fs = require('fs'); const ver = fs.readFileSync('ver', 'utf8').trim(); const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); pkg.version = ver + '.${{ github.run_number }}'; fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2)); if(fs.existsSync('electron/package.json')){const epkg = JSON.parse(fs.readFileSync('electron/package.json', 'utf8')); epkg.version = pkg.version; fs.writeFileSync('electron/package.json', JSON.stringify(epkg, null, 2));} console.log('Version set to ' + pkg.version);"
=======
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
Expand Down Expand Up @@ -242,6 +252,12 @@ jobs:
npx cap sync android

cd android
<<<<<<< HEAD
VERSION=$(cat ../ver | tr -d '\r\n').${{ github.run_number }}
sed -i "s/versionName \".*\"/versionName \"$VERSION\"/g" app/build.gradle
sed -i "s/versionCode .*/versionCode ${{ github.run_number }}/g" app/build.gradle
=======
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20
./gradlew assembleDebug
./gradlew bundleDebug

Expand Down Expand Up @@ -272,7 +288,12 @@ jobs:
mkdir -p deb-package/usr/share/applications
mkdir -p deb-package/usr/share/icons/hicolor/512x512/apps

<<<<<<< HEAD
VERSION=$(cat ver | tr -d '\r\n').${{ github.run_number }}
sed -e "s|\${AppName}|$APP_NAME|g" -e "s|Version: 1.0.0|Version: $VERSION|g" .pwa/linux-control > deb-package/DEBIAN/control
=======
sed -e "s|\${AppName}|$APP_NAME|g" .pwa/linux-control > deb-package/DEBIAN/control
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20

sed -e "s|\${ManifestUrl}|$MANIFEST_URL|g" .pwa/linux-launcher.sh > deb-package/usr/bin/$APP_NAME
chmod +x deb-package/usr/bin/$APP_NAME
Expand All @@ -285,7 +306,11 @@ jobs:

sudo apt-get update && sudo apt-get install -y rpm
mkdir -p rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
<<<<<<< HEAD
sed -e "s|\${AppName}|$APP_NAME|g" -e "s|\${Workspace}|$GITHUB_WORKSPACE|g" -e "s|Version: 1.0.0|Version: $VERSION|g" .pwa/linux.spec > rpmbuild/SPECS/pwa.spec
=======
sed -e "s|\${AppName}|$APP_NAME|g" -e "s|\${Workspace}|$GITHUB_WORKSPACE|g" .pwa/linux.spec > rpmbuild/SPECS/pwa.spec
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20

rpmbuild -bb --define "_topdir $GITHUB_WORKSPACE/rpmbuild" rpmbuild/SPECS/pwa.spec
cp rpmbuild/RPMS/noarch/*.rpm .
Expand Down Expand Up @@ -327,6 +352,11 @@ jobs:
app_type: [bundled, pwa]
steps:
- uses: actions/checkout@v4
<<<<<<< HEAD
- name: Set App Version
run: node -e "const fs = require('fs'); const ver = fs.readFileSync('ver', 'utf8').trim(); const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); pkg.version = ver + '.${{ github.run_number }}'; fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2)); if(fs.existsSync('electron/package.json')){const epkg = JSON.parse(fs.readFileSync('electron/package.json', 'utf8')); epkg.version = pkg.version; fs.writeFileSync('electron/package.json', JSON.stringify(epkg, null, 2));} console.log('Version set to ' + pkg.version);"
=======
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
Expand Down Expand Up @@ -441,8 +471,14 @@ jobs:
Copy-Item $IconSrc "$AppDir\Assets\Square44x44Logo.png"
Copy-Item $IconSrc "$AppDir\Assets\SplashScreen.png"

<<<<<<< HEAD
$Version = (Get-Content -Path "ver" -Raw).Trim() + "." + $env:GITHUB_RUN_NUMBER + ".0"
$ManifestContent = Get-Content -Path ".pwa/windows-bundled.appxmanifest.xml" -Raw
$ManifestContent = $ManifestContent -replace '\$\{Prefix\}', $Prefix -replace 'Version="1\.0\.0\.0"', "Version=`"$Version`""
=======
$ManifestContent = Get-Content -Path ".pwa/windows-bundled.appxmanifest.xml" -Raw
$ManifestContent = $ManifestContent -replace '\$\{Prefix\}', $Prefix
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20
Set-Content -Path "$AppDir\AppxManifest.xml" -Value $ManifestContent

$MakeAppx = (Get-ChildItem -Path "C:\Program Files (x86)\Windows Kits\10\bin\*\x64\makeappx.exe" -ErrorAction SilentlyContinue | Sort-Object FullName -Descending | Select-Object -First 1).FullName
Expand Down Expand Up @@ -477,8 +513,14 @@ jobs:
Copy-Item $IconSrc "$AppDir\Assets\Square44x44Logo.png"
Copy-Item $IconSrc "$AppDir\Assets\SplashScreen.png"

<<<<<<< HEAD
$Version = (Get-Content -Path "ver" -Raw).Trim() + "." + $env:GITHUB_RUN_NUMBER + ".0"
$ManifestContent = Get-Content -Path ".pwa/windows-pwa.appxmanifest.xml" -Raw
$ManifestContent = $ManifestContent -replace '\$\{Prefix\}', $Prefix -replace '\$\{ManifestUrl\}', $ManifestUrl -replace 'Version="1\.0\.0\.0"', "Version=`"$Version`""
=======
$ManifestContent = Get-Content -Path ".pwa/windows-pwa.appxmanifest.xml" -Raw
$ManifestContent = $ManifestContent -replace '\$\{Prefix\}', $Prefix -replace '\$\{ManifestUrl\}', $ManifestUrl
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20
Set-Content -Path "$AppDir\AppxManifest.xml" -Value $ManifestContent

$MakeAppx = (Get-ChildItem -Path "C:\Program Files (x86)\Windows Kits\10\bin\*\x64\makeappx.exe" -ErrorAction SilentlyContinue | Sort-Object FullName -Descending | Select-Object -First 1).FullName
Expand Down Expand Up @@ -518,6 +560,11 @@ jobs:
app_type: [bundled, pwa]
steps:
- uses: actions/checkout@v4
<<<<<<< HEAD
- name: Set App Version
run: node -e "const fs = require('fs'); const ver = fs.readFileSync('ver', 'utf8').trim(); const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); pkg.version = ver + '.${{ github.run_number }}'; fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2)); if(fs.existsSync('electron/package.json')){const epkg = JSON.parse(fs.readFileSync('electron/package.json', 'utf8')); epkg.version = pkg.version; fs.writeFileSync('electron/package.json', JSON.stringify(epkg, null, 2));} console.log('Version set to ' + pkg.version);"
=======
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
Expand Down Expand Up @@ -611,6 +658,12 @@ jobs:
npx cap add ios
npx @capacitor/assets generate --ios
npx cap sync ios
<<<<<<< HEAD
VERSION=$(cat ver | tr -d '\r\n').${{ github.run_number }}
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $VERSION" ios/App/App/Info.plist
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${{ github.run_number }}" ios/App/App/Info.plist
=======
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20
cd ios/App
xcodebuild -project App.xcodeproj -scheme App -configuration Debug -sdk iphonesimulator -derivedDataPath build
xcodebuild archive -project App.xcodeproj -scheme App -configuration Release -archivePath build/App.xcarchive CODE_SIGNING_ALLOWED=NO || true
Expand Down Expand Up @@ -642,6 +695,11 @@ jobs:
app_type: [bundled, pwa]
steps:
- uses: actions/checkout@v4
<<<<<<< HEAD
- name: Set App Version
run: node -e "const fs = require('fs'); const ver = fs.readFileSync('ver', 'utf8').trim(); const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); pkg.version = ver + '.${{ github.run_number }}'; fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2)); if(fs.existsSync('electron/package.json')){const epkg = JSON.parse(fs.readFileSync('electron/package.json', 'utf8')); epkg.version = pkg.version; fs.writeFileSync('electron/package.json', JSON.stringify(epkg, null, 2));} console.log('Version set to ' + pkg.version);"
=======
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20

- name: Download Web Artifact
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -678,11 +736,20 @@ jobs:
cp .pwa/icons-$build_prefix/pwa/icon-512x512.png ext-firefox/icon.png

# 1. Chromium Extension (Chrome, Edge, Brave, Opera, ChromeOS)
<<<<<<< HEAD
VERSION=$(cat ver | tr -d '\r\n').${{ github.run_number }}
sed -e "s|\${AppName}|$APP_NAME|g" -e "s|\"version\": \"1.0.0\"|\"version\": \"$VERSION\"|g" .pwa/chromium-manifest.json > ext-chromium/manifest.json
sed -e "s|\${TargetUrl}|$TARGET_URL|g" .pwa/extension-background.js > ext-chromium/background.js

# 2. Firefox Extension
sed -e "s|\${AppName}|$APP_NAME|g" -e "s|\${Prefix}|$build_prefix|g" -e "s|\"version\": \"1.0.0\"|\"version\": \"$VERSION\"|g" .pwa/firefox-manifest.json > ext-firefox/manifest.json
=======
sed -e "s|\${AppName}|$APP_NAME|g" .pwa/chromium-manifest.json > ext-chromium/manifest.json
sed -e "s|\${TargetUrl}|$TARGET_URL|g" .pwa/extension-background.js > ext-chromium/background.js

# 2. Firefox Extension
sed -e "s|\${AppName}|$APP_NAME|g" -e "s|\${Prefix}|$build_prefix|g" .pwa/firefox-manifest.json > ext-firefox/manifest.json
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20
sed -e "s|\${TargetUrl}|$TARGET_URL|g" .pwa/extension-background.js > ext-firefox/background.js

# Zip the extensions (Ready for Chrome Web Store & Mozilla Add-ons)
Expand Down
39 changes: 39 additions & 0 deletions audio_to_ogg.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import os
import subprocess
from pathlib import Path

def convert_to_ogg(input_folder):
formats = [".mp3", ".wav", ".m4a", ".flac", ".ogg"]
print("Starting batch conversion...")

if not os.path.exists(os.path.join(input_folder, "converted")):
os.mkdir(os.path.join(input_folder, "converted"))

for ext in formats:
for file_path in Path(input_folder).glob(f"*{ext}"):
input_file = str(file_path)
output_file = str(Path(input_folder) / "converted/" / file_path.with_suffix('.ogg').name)
command = [
"ffmpeg",
"-i", input_file,
"-c:a", "libvorbis",
"-q:a", "5",
"-map_metadata", "-1",
"-vn",
"-ac", "1",
"-ar", "32000",
"-af", "silenceremove=start_periods=1:start_duration=0:start_threshold=-50dB",
"-y",
output_file
]
print(f"Converting {file_path.name} to OGG...")
try:
subprocess.run(command, check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
print(f" -> Saved to {output_file}")
except subprocess.CalledProcessError as e:
print(f" -> Error converting {file_path.name}. Ensure it's a valid audio file.")
print(e)
print("Done!")

convert_to_ogg("public/sound/music")
convert_to_ogg("public/sound/sfx")
13 changes: 13 additions & 0 deletions capacitor.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
import type { CapacitorConfig } from '@capacitor/cli';
<<<<<<< HEAD
import type { CapacitorElectronConfig } from '@capacitor-community/electron';

const config: CapacitorElectronConfig = {
appId: 'com.cheems.app',
appName: 'Cheems Bonk Game',
webDir: 'dist/cheems-angular/browser',
electron: {
trayIconAndMenuEnabled: false,
splashScreenEnabled: false
}
=======

const config: CapacitorConfig = {
appId: 'com.cheems.app',
appName: 'Cheems Bonk Game',
webDir: 'dist/cheems-angular/browser'
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20
};

export default config;
4 changes: 4 additions & 0 deletions electron/electron-builder.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"buildResources": "assets"
},
"files": [
<<<<<<< HEAD
"app/**/*",
=======
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20
"build/**/*",
"node_modules/**/*",
"package.json"
Expand Down
10 changes: 10 additions & 0 deletions electron/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import type { MenuItemConstructorOptions } from 'electron';
import { app, MenuItem } from 'electron';
import electronIsDev from 'electron-is-dev';
import unhandled from 'electron-unhandled';
<<<<<<< HEAD
=======
import { autoUpdater } from 'electron-updater';
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20

import { ElectronCapacitorApp, setupContentSecurityPolicy, setupReloadWatcher } from './setup';

Expand Down Expand Up @@ -45,6 +48,13 @@ if (electronIsDev) {
setupContentSecurityPolicy(myCapacitorApp.getCustomURLScheme());
// Initialize our app, build windows, and load content.
await myCapacitorApp.init();
<<<<<<< HEAD

myCapacitorApp.getMainWindow().on('close', () => {
app.quit();
});
=======
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20
})();

// Handle when all of our windows are close (platforms have their own expectations).
Expand Down
24 changes: 24 additions & 0 deletions ngsw-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,39 @@
}
},
{
<<<<<<< HEAD
"name": "essential-assets",
=======
"name": "assets",
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20
"installMode": "prefetch",
"updateMode": "prefetch",
"resources": {
"files": [
<<<<<<< HEAD
"/closet.json",
"/items/*.json",
"/lang/*.lang",
"/sound/music/A_Jazz_Piano.ogg",
"/sound/sfx/hit.ogg",
"/img/cheems/normal.webp",
"/**/*.(svg|cur|woff|woff2|ttf|otf)"
]
}
},
{
"name": "lazy-assets",
"installMode": "lazy",
"updateMode": "lazy",
"resources": {
"files": [
"/**/*.(jpg|jpeg|png|apng|webp|avif|gif|txt|xml|csv|ico|ogg|mp3|wav|m4a)",
=======
"/**/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2|txt|json|xml|csv|ico|ogg|mp3|wav|m4a|lang)",
"/closet.json",
"/items/*.json",
"/lang/*.lang",
>>>>>>> 978282b3d376db0a28f8a319cd5e15d9f5cddf20
"/sound/**/*",
"/img/**/*",
"/games/**/*"
Expand Down
18 changes: 18 additions & 0 deletions png_to_webp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import os
from PIL import Image

def batch_convert_png_to_webp(folder_path, quality=85):
for filename in os.listdir(folder_path):
if filename.lower().endswith(".png"):
png_path = os.path.join(folder_path, filename)
webp_filename = os.path.splitext(filename)[0] + ".webp"
webp_path = os.path.join(folder_path, webp_filename)

with Image.open(png_path) as img:
img.save(webp_path, "webp", quality=quality)
print(f"Converted: {filename} -> {webp_filename}")

batch_convert_png_to_webp("public/img/cheems", 100)
batch_convert_png_to_webp("public/img/hit", 100)
batch_convert_png_to_webp("public/img/music", 100)

Loading