Skip to content

Commit efb963e

Browse files
wiltarkMuhammed Afil
authored andcommitted
fix: update version to 3.8.3 in package.json
0 parents  commit efb963e

160 files changed

Lines changed: 54241 additions & 0 deletions

File tree

Some content is hidden

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

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist

.eslintrc.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"env": {
3+
"es2022": true,
4+
"node": true
5+
},
6+
"extends": "eslint:recommended",
7+
"parserOptions": {
8+
"ecmaVersion": 2022,
9+
"sourceType": "module"
10+
},
11+
"rules": {
12+
"indent": [
13+
"error",
14+
4,
15+
{
16+
"SwitchCase": 1
17+
}
18+
],
19+
"linebreak-style": [
20+
"error",
21+
"windows"
22+
],
23+
"quotes": [
24+
"error",
25+
"single"
26+
],
27+
"semi": [
28+
"error",
29+
"never"
30+
],
31+
"no-var": [
32+
"error"
33+
],
34+
"no-console": [
35+
0
36+
],
37+
"no-control-regex": [
38+
0
39+
],
40+
"no-unused-vars": [
41+
"error",
42+
{
43+
"vars": "all",
44+
"args": "none",
45+
"ignoreRestSiblings": false,
46+
"argsIgnorePattern": "reject"
47+
}
48+
],
49+
"no-async-promise-executor": [
50+
0
51+
]
52+
},
53+
"overrides": [
54+
{
55+
"files": [ "app/assets/js/scripts/*.js" ],
56+
"rules": {
57+
"no-unused-vars": [
58+
0
59+
],
60+
"no-undef": [
61+
0
62+
]
63+
}
64+
}
65+
]
66+
}

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

.github/workflows/build.yml

Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
# MultiGames Studio Launcher Build Workflow
2+
name: Build and Release
3+
4+
on:
5+
push:
6+
branches: [ prod ]
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
create-release:
14+
runs-on: ubuntu-latest
15+
outputs:
16+
version: ${{ steps.get_version.outputs.version }}
17+
upload_url: ${{ steps.create_release.outputs.upload_url }}
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Auto-increment version if unchanged
26+
id: auto_version
27+
run: |
28+
CURRENT_VERSION=$(jq -r .version package.json)
29+
30+
# Récupérer la dernière version taguée
31+
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
32+
LAST_VERSION=${LAST_TAG#v}
33+
34+
# Comparer les versions
35+
if [ "$CURRENT_VERSION" = "$LAST_VERSION" ]; then
36+
echo "Version inchangée, incrémentation automatique..."
37+
38+
# Séparer les composants de la version
39+
IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT_VERSION"
40+
41+
# Incrémenter le patch
42+
NEW_PATCH=$((PATCH + 1))
43+
NEW_VERSION="$MAJOR.$MINOR.$NEW_PATCH"
44+
45+
# Mettre à jour package.json
46+
jq --arg version "$NEW_VERSION" '.version = $version' package.json > package.json.tmp
47+
mv package.json.tmp package.json
48+
49+
echo "Version incrémentée: $CURRENT_VERSION -> $NEW_VERSION"
50+
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
51+
else
52+
echo "Version déjà mise à jour manuellement: $CURRENT_VERSION"
53+
echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
54+
fi
55+
56+
- name: Get version
57+
id: get_version
58+
run: echo "version=${{ steps.auto_version.outputs.version }}" >> $GITHUB_OUTPUT
59+
60+
- name: Generate full changelog
61+
id: gen_changelog
62+
run: |
63+
# Récupérer le dernier tag (ou v0.0.0 si aucun)
64+
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
65+
LAST_VERSION=${LAST_TAG#v}
66+
67+
echo "# Full Changelog: ${LAST_TAG}...HEAD" > release_body.md
68+
echo "" >> release_body.md
69+
70+
# Générer le changelog entre le dernier tag et HEAD (format compact)
71+
git --no-pager log --pretty=format:'- %s (%h) - %an' ${LAST_TAG}..HEAD >> release_body.md || true
72+
73+
echo "" >> release_body.md
74+
echo "Changelog generated from ${LAST_TAG} to HEAD" >> release_body.md
75+
76+
- name: Create Release
77+
id: create_release
78+
uses: softprops/action-gh-release@v1
79+
env:
80+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81+
with:
82+
tag_name: v${{ steps.get_version.outputs.version }}
83+
name: MultiGames Studio Launcher v${{ steps.get_version.outputs.version }}
84+
draft: false
85+
prerelease: ${{ contains(steps.get_version.outputs.version, 'beta') || contains(steps.get_version.outputs.version, 'alpha') }}
86+
# Use the generated full changelog file instead of auto-generated release notes
87+
body_path: release_body.md
88+
generate_release_notes: false
89+
90+
build-launcher:
91+
needs: create-release
92+
runs-on: ${{ matrix.os }}
93+
94+
strategy:
95+
matrix:
96+
os: [macos-14, ubuntu-latest, windows-latest]
97+
98+
steps:
99+
- name: Check out Git repository
100+
uses: actions/checkout@v4
101+
102+
- name: Set up Node.js
103+
uses: actions/setup-node@v4
104+
with:
105+
node-version: '20.x'
106+
cache: 'npm'
107+
108+
- name: Set up Python
109+
uses: actions/setup-python@v5
110+
with:
111+
python-version: '3.x'
112+
113+
- name: Install Dependencies
114+
run: npm ci
115+
116+
117+
- name: Build Application
118+
env:
119+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
120+
run: npm run dist
121+
122+
- name: Upload Windows Artifacts
123+
if: matrix.os == 'windows-latest'
124+
uses: softprops/action-gh-release@v1
125+
with:
126+
tag_name: v${{ needs.create-release.outputs.version }}
127+
files: |
128+
dist/*.exe
129+
dist/latest.yml
130+
131+
- name: Upload macOS Artifacts
132+
if: matrix.os == 'macos-14'
133+
uses: softprops/action-gh-release@v1
134+
with:
135+
tag_name: v${{ needs.create-release.outputs.version }}
136+
files: |
137+
dist/*.dmg
138+
dist/latest-mac.yml
139+
140+
- name: Upload Linux Artifacts
141+
if: matrix.os == 'ubuntu-latest'
142+
uses: softprops/action-gh-release@v1
143+
with:
144+
tag_name: v${{ needs.create-release.outputs.version }}
145+
files: |
146+
dist/*.AppImage
147+
dist/*.deb
148+
dist/latest-linux.yml
149+
150+
build-deb:
151+
needs: create-release
152+
runs-on: ubuntu-latest
153+
154+
steps:
155+
- name: Check out Git repository
156+
uses: actions/checkout@v4
157+
158+
- name: Set up Node.js
159+
uses: actions/setup-node@v4
160+
with:
161+
node-version: '20.x'
162+
163+
- name: Install Dependencies
164+
run: npm ci
165+
166+
- name: Install fpm and native build deps
167+
run: |
168+
sudo apt-get update
169+
# remove libgconf-2-4 (not always available on ubuntu-latest); use --no-install-recommends to reduce extras
170+
sudo apt-get install -y --no-install-recommends ruby-dev build-essential rpm dpkg-dev fakeroot xz-utils libgtk-3-0 libnotify4 libnss3 libxss1 libxtst6 xdg-utils libatspi2.0-0 libuuid1 libsecret-1-0
171+
sudo gem install --no-document fpm
172+
173+
- name: Build Debian package
174+
env:
175+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
176+
run: npx electron-builder --linux deb --config electron-builder.yml --publish never
177+
178+
- name: Upload Debian Artifact
179+
uses: softprops/action-gh-release@v1
180+
with:
181+
tag_name: v${{ needs.create-release.outputs.version }}
182+
files: |
183+
dist/*.deb

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/node_modules/
2+
/.vs/
3+
/.vscode/
4+
/target/
5+
/logs/
6+
/dist/
7+
8+
# Fichiers de test et temporaires
9+
/test/
10+
test-deduplication.js
11+
convert-webp.html
12+
fdsf.html
13+
app/assets/config/fgdsfd.json
14+
app/assets/js/scripts/Untitled-1.txt
15+
16+
# Fichiers de développement
17+
*.log
18+
*.tmp
19+
.DS_Store
20+
Thumbs.db

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/MGS-next-launcher.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/Project.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)