Compare commits
84 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2e5656747 | ||
|
|
65fc0339b9 | ||
|
|
0421654c50 | ||
|
|
bdaa42f6df | ||
|
|
9984c3ecb5 | ||
|
|
5e7c2309ac | ||
|
|
9dda8555a0 | ||
|
|
43046a3cf3 | ||
|
|
fe29cc532d | ||
|
|
7dd73ef8d3 | ||
|
|
ad6bd7be4b | ||
|
|
c276b700fa | ||
|
|
98f73aa4c0 | ||
|
|
1db854618e | ||
|
|
940a1bc3f8 | ||
|
|
7463dd96dc | ||
|
|
48e96998a9 | ||
|
|
95a1b03cc5 | ||
|
|
ee4dfa7f51 | ||
|
|
06f403e9d7 | ||
|
|
c03f3f727c | ||
|
|
ed4ba1dc38 | ||
|
|
9663f8c316 | ||
|
|
2478df1242 | ||
|
|
1b54dd3b90 | ||
|
|
001014c70e | ||
|
|
1a444a9e98 | ||
|
|
d5397333d5 | ||
|
|
e1001c74c5 | ||
|
|
5f664c04d6 | ||
|
|
525fa4c25e | ||
|
|
f513760153 | ||
|
|
5faa929bb0 | ||
|
|
5c4557a7b7 | ||
|
|
69a84c035e | ||
|
|
f8277e1c8a | ||
|
|
48f3d293bd | ||
|
|
00bf828ef4 | ||
|
|
d1cef7ed84 | ||
|
|
17bb8dbe6d | ||
|
|
6166c03eab | ||
|
|
303f32f5b2 | ||
|
|
f7e4d7b30d | ||
|
|
f2957dff7b | ||
|
|
cadbe38a8f | ||
|
|
e55d117371 | ||
|
|
1f3d8a212b | ||
|
|
035f30d7e1 | ||
|
|
3202aa18b1 | ||
|
|
0c5d2bdf1a | ||
|
|
db25475c21 | ||
|
|
11b1c23be0 | ||
|
|
5b1eef890d | ||
|
|
3a3d062e5c | ||
|
|
2ee9ed237f | ||
|
|
9159661945 | ||
|
|
0efd2c8044 | ||
|
|
0aaa5822fb | ||
|
|
2b258aeaed | ||
|
|
0d7a80f2b5 | ||
|
|
d433d98c04 | ||
|
|
180dc12460 | ||
|
|
dd1d0b4126 | ||
|
|
f1517fad1a | ||
|
|
62ed279f07 | ||
|
|
6925d59f87 | ||
|
|
848cc41c72 | ||
|
|
f212076604 | ||
|
|
ee4fd51e0f | ||
|
|
f96b4f6724 | ||
|
|
7b6f2f826a | ||
|
|
8ed4fd6cba | ||
|
|
b914cb26be | ||
|
|
97472e9a17 | ||
|
|
8b61bd7d8a | ||
|
|
1699a2b68a | ||
|
|
969aa87a10 | ||
|
|
b3dfa7d7ce | ||
|
|
483de50169 | ||
|
|
96762ffa5c | ||
|
|
88d05c2354 | ||
|
|
8aac152ee6 | ||
|
|
d83779662a | ||
|
|
c19e656d46 |
2
.github/actions/get-cc/action.yml
vendored
2
.github/actions/get-cc/action.yml
vendored
@@ -3,7 +3,7 @@ description: 'download cc into specific dir'
|
||||
inputs:
|
||||
tag:
|
||||
required: false
|
||||
default: "11.4"
|
||||
default: "11.4.2"
|
||||
platform:
|
||||
required: true
|
||||
dir:
|
||||
|
||||
175
.github/workflows/main.yml
vendored
175
.github/workflows/main.yml
vendored
@@ -70,8 +70,6 @@ jobs:
|
||||
env:
|
||||
OUTPUT_FOLDER: ./build
|
||||
RELEASE_FOLDER: ./release
|
||||
outputs:
|
||||
download-url: ${{ steps.transfer.outputs.download-url }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
@@ -128,20 +126,6 @@ jobs:
|
||||
body: ${{ needs.get-info.outputs.update-note }}
|
||||
name: ${{ needs.get-info.outputs.update-title }}
|
||||
prerelease: ${{ startsWith(github.ref, 'refs/tags/pre') }}
|
||||
- name: Get transfer
|
||||
shell: bash
|
||||
run: |
|
||||
curl -sL --retry 5 https://raw.githubusercontent.com/Mikubill/transfer/master/install.sh | sh
|
||||
- name: Upload to WeTransfer
|
||||
id: transfer
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
max_attempts: 5
|
||||
retry_wait_seconds: 10
|
||||
timeout_minutes: 5
|
||||
command: |
|
||||
./transfer wet -s -p 16 --no-progress ${{ env.OUTPUT_FOLDER }}/${{ steps.process-app-name.outputs.product-name }}.love 2>&1>./wetransfer.log
|
||||
echo "download-url=$(cat ./wetransfer.log | grep https | cut -f3 -d" ")" >> $GITHUB_OUTPUT
|
||||
|
||||
auto-test:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -163,8 +147,6 @@ jobs:
|
||||
env:
|
||||
OUTPUT_FOLDER: ./build
|
||||
RELEASE_FOLDER: ./release
|
||||
outputs:
|
||||
download-url: ${{ steps.transfer.outputs.download-url }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
@@ -193,7 +175,7 @@ jobs:
|
||||
dir: ./libAndroid
|
||||
- name: Build Android packages
|
||||
id: build-packages
|
||||
uses: love-actions/love-actions-android@v1
|
||||
uses: love-actions/love-actions-android@main
|
||||
with:
|
||||
app-name: ${{ needs.get-info.outputs.app-name }}
|
||||
bundle-id: ${{ steps.process-app-name.outputs.bundle-id }}
|
||||
@@ -205,6 +187,7 @@ jobs:
|
||||
love-package: ${{ env.CORE_LOVE_PACKAGE_PATH }}
|
||||
resource-path: ./.github/build/android/${{ env.BUILD_TYPE }}/res
|
||||
extra-assets: ./libAndroid/
|
||||
custom-scheme: studio26f://oauth
|
||||
product-name: ${{ steps.process-app-name.outputs.product-name }}
|
||||
version-string: ${{ needs.get-info.outputs.version-string }}
|
||||
version-code: ${{ needs.get-info.outputs.version-code }}
|
||||
@@ -229,20 +212,6 @@ jobs:
|
||||
body: ${{ needs.get-info.outputs.update-note }}
|
||||
name: ${{ needs.get-info.outputs.update-title }}
|
||||
prerelease: ${{ startsWith(github.ref, 'refs/tags/pre') }}
|
||||
- name: Get transfer
|
||||
shell: bash
|
||||
run: |
|
||||
curl -sL --retry 5 https://raw.githubusercontent.com/Mikubill/transfer/master/install.sh | sh
|
||||
- name: Upload to WeTransfer
|
||||
id: transfer
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
max_attempts: 5
|
||||
retry_wait_seconds: 10
|
||||
timeout_minutes: 5
|
||||
command: |
|
||||
./transfer wet -s -p 16 --no-progress ${{ steps.build-packages.outputs.package-paths }} 2>&1>./wetransfer.log
|
||||
echo "download-url=$(cat ./wetransfer.log | grep https | cut -f3 -d" ")" >> $GITHUB_OUTPUT
|
||||
|
||||
build-ios:
|
||||
runs-on: macos-latest
|
||||
@@ -251,8 +220,6 @@ jobs:
|
||||
env:
|
||||
OUTPUT_FOLDER: ./build
|
||||
RELEASE_FOLDER: ./release
|
||||
outputs:
|
||||
download-url: ${{ steps.transfer.outputs.download-url }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
@@ -326,20 +293,6 @@ jobs:
|
||||
body: ${{ needs.get-info.outputs.update-note }}
|
||||
name: ${{ needs.get-info.outputs.update-title }}
|
||||
prerelease: ${{ startsWith(github.ref, 'refs/tags/pre') }}
|
||||
- name: Get transfer
|
||||
shell: bash
|
||||
run: |
|
||||
wget -qO- https://github.com/Mikubill/transfer/releases/download/v0.4.17/transfer_0.4.17_darwin_amd64.tar.gz | tar xvz
|
||||
- name: Upload to WeTransfer
|
||||
id: transfer
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
max_attempts: 5
|
||||
retry_wait_seconds: 10
|
||||
timeout_minutes: 5
|
||||
command: |
|
||||
./transfer wet -s -p 16 --no-progress ${{ steps.build-packages.outputs.package-paths }} 2>&1>./wetransfer.log
|
||||
echo "download-url=$(cat ./wetransfer.log | grep https | cut -f3 -d" ")" >> $GITHUB_OUTPUT
|
||||
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -347,8 +300,6 @@ jobs:
|
||||
env:
|
||||
OUTPUT_FOLDER: ./build
|
||||
RELEASE_FOLDER: ./release
|
||||
outputs:
|
||||
download-url: ${{ steps.transfer.outputs.download-url }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
@@ -425,20 +376,6 @@ jobs:
|
||||
body: ${{ needs.get-info.outputs.update-note }}
|
||||
name: ${{ needs.get-info.outputs.update-title }}
|
||||
prerelease: ${{ startsWith(github.ref, 'refs/tags/pre') }}
|
||||
- name: Get transfer
|
||||
shell: bash
|
||||
run: |
|
||||
curl -sL --retry 5 https://raw.githubusercontent.com/Mikubill/transfer/master/install.sh | sh
|
||||
- name: Upload to WeTransfer
|
||||
id: transfer
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
max_attempts: 5
|
||||
retry_wait_seconds: 10
|
||||
timeout_minutes: 5
|
||||
command: |
|
||||
./transfer wet -s -p 16 --no-progress ${{ steps.build-packages.outputs.package-paths }} 2>&1>./wetransfer.log
|
||||
echo "download-url=$(cat ./wetransfer.log | grep https | cut -f3 -d" ")" >> $GITHUB_OUTPUT
|
||||
|
||||
build-macos-appstore:
|
||||
runs-on: macos-latest
|
||||
@@ -447,8 +384,6 @@ jobs:
|
||||
env:
|
||||
OUTPUT_FOLDER: ./build
|
||||
RELEASE_FOLDER: ./release
|
||||
outputs:
|
||||
download-url: ${{ steps.transfer.outputs.download-url }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
@@ -525,20 +460,6 @@ jobs:
|
||||
body: ${{ needs.get-info.outputs.update-note }}
|
||||
name: ${{ needs.get-info.outputs.update-title }}
|
||||
prerelease: ${{ startsWith(github.ref, 'refs/tags/pre') }}
|
||||
- name: Get transfer
|
||||
shell: bash
|
||||
run: |
|
||||
wget -qO- https://github.com/Mikubill/transfer/releases/download/v0.4.17/transfer_0.4.17_darwin_amd64.tar.gz | tar xvz
|
||||
- name: Upload to WeTransfer
|
||||
id: transfer
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
max_attempts: 5
|
||||
retry_wait_seconds: 10
|
||||
timeout_minutes: 5
|
||||
command: |
|
||||
./transfer wet -s -p 16 --no-progress ${{ steps.build-packages.outputs.package-paths }} 2>&1>./wetransfer.log
|
||||
echo "download-url=$(cat ./wetransfer.log | grep https | cut -f3 -d" ")" >> $GITHUB_OUTPUT
|
||||
|
||||
build-macos-portable:
|
||||
runs-on: macos-latest
|
||||
@@ -547,8 +468,6 @@ jobs:
|
||||
env:
|
||||
OUTPUT_FOLDER: ./build
|
||||
RELEASE_FOLDER: ./release
|
||||
outputs:
|
||||
download-url: ${{ steps.transfer.outputs.download-url }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
@@ -637,20 +556,6 @@ jobs:
|
||||
body: ${{ needs.get-info.outputs.update-note }}
|
||||
name: ${{ needs.get-info.outputs.update-title }}
|
||||
prerelease: ${{ startsWith(github.ref, 'refs/tags/pre') }}
|
||||
- name: Get transfer
|
||||
shell: bash
|
||||
run: |
|
||||
wget -qO- https://github.com/Mikubill/transfer/releases/download/v0.4.17/transfer_0.4.17_darwin_amd64.tar.gz | tar xvz
|
||||
- name: Upload to WeTransfer
|
||||
id: transfer
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
max_attempts: 5
|
||||
retry_wait_seconds: 10
|
||||
timeout_minutes: 5
|
||||
command: |
|
||||
./transfer wet -s -p 16 --no-progress ${{ steps.build-packages.outputs.package-paths }} 2>&1>./wetransfer.log
|
||||
echo "download-url=$(cat ./wetransfer.log | grep https | cut -f3 -d" ")" >> $GITHUB_OUTPUT
|
||||
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
@@ -658,8 +563,6 @@ jobs:
|
||||
env:
|
||||
OUTPUT_FOLDER: ./build
|
||||
RELEASE_FOLDER: ./release
|
||||
outputs:
|
||||
download-url: ${{ steps.transfer.outputs.download-url }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
@@ -681,6 +584,19 @@ jobs:
|
||||
with:
|
||||
platform: Windows
|
||||
dir: ./ColdClear
|
||||
- name: Update Windows template
|
||||
shell: python3 {0}
|
||||
run: |
|
||||
version_string = "${{ needs.get-info.outputs.version-string }}"
|
||||
file_version = (f"{version_string.replace('.', ',')},0")
|
||||
with open("./.github/build/windows/${{ env.BUILD_TYPE }}/template.rc", "r+", encoding="utf8") as file:
|
||||
data = file.read()
|
||||
data = data\
|
||||
.replace("@Version", version_string)\
|
||||
.replace("@FileVersion", file_version)
|
||||
file.seek(0)
|
||||
file.truncate()
|
||||
file.write(data)
|
||||
- name: Build Windows packages
|
||||
id: build-packages
|
||||
uses: love-actions/love-actions-windows@v1
|
||||
@@ -691,7 +607,9 @@ jobs:
|
||||
extra-assets-x86: ./ColdClear/x86/CCloader.dll ./ColdClear/x86/cold_clear.dll
|
||||
extra-assets-x64: ./ColdClear/x64/CCloader.dll ./ColdClear/x64/cold_clear.dll
|
||||
product-name: ${{ steps.process-app-name.outputs.product-name }}
|
||||
version-string: ${{ needs.get-info.outputs.version-string }}
|
||||
app-id: ${{ secrets.WINDOWS_APP_ID }}
|
||||
project-website: https://www.studio26f.org/
|
||||
installer-languages: ChineseSimplified.isl ChineseTraditional.isl English.isl Spanish.isl French.isl Indonesian.isl Japanese.isl Portuguese.isl
|
||||
output-folder: ${{ env.OUTPUT_FOLDER }}
|
||||
- name: Upload 32-bit artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
@@ -703,6 +621,11 @@ jobs:
|
||||
with:
|
||||
name: ${{ needs.get-info.outputs.base-name }}_Windows_x64
|
||||
path: ${{ env.OUTPUT_FOLDER }}/${{ steps.process-app-name.outputs.product-name }}_x64.zip
|
||||
- name: Upload installer artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ needs.get-info.outputs.base-name }}_Windows_installer
|
||||
path: ${{ env.OUTPUT_FOLDER }}/${{ steps.process-app-name.outputs.product-name }}_installer.exe
|
||||
- name: Prepare for release
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/pre') || startsWith(github.ref, 'refs/tags/v') }}
|
||||
shell: bash
|
||||
@@ -710,6 +633,7 @@ jobs:
|
||||
mkdir -p ${{ env.RELEASE_FOLDER }}
|
||||
cp ${{ env.OUTPUT_FOLDER }}/${{ steps.process-app-name.outputs.product-name }}_x86.zip ${{ env.RELEASE_FOLDER }}/${{ steps.process-app-name.outputs.product-name }}_Windows_x86.zip
|
||||
cp ${{ env.OUTPUT_FOLDER }}/${{ steps.process-app-name.outputs.product-name }}_x64.zip ${{ env.RELEASE_FOLDER }}/${{ steps.process-app-name.outputs.product-name }}_Windows_x64.zip
|
||||
cp ${{ env.OUTPUT_FOLDER }}/${{ steps.process-app-name.outputs.product-name }}_installer.exe ${{ env.RELEASE_FOLDER }}/${{ steps.process-app-name.outputs.product-name }}_Windows_installer.exe
|
||||
- name: Upload release
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/pre') || startsWith(github.ref, 'refs/tags/v') }}
|
||||
uses: ncipollo/release-action@v1
|
||||
@@ -718,28 +642,10 @@ jobs:
|
||||
artifacts: |
|
||||
${{ env.RELEASE_FOLDER }}/${{ steps.process-app-name.outputs.product-name }}_Windows_x86.zip
|
||||
${{ env.RELEASE_FOLDER }}/${{ steps.process-app-name.outputs.product-name }}_Windows_x64.zip
|
||||
${{ env.RELEASE_FOLDER }}/${{ steps.process-app-name.outputs.product-name }}_Windows_installer.exe
|
||||
body: ${{ needs.get-info.outputs.update-note }}
|
||||
name: ${{ needs.get-info.outputs.update-title }}
|
||||
prerelease: ${{ startsWith(github.ref, 'refs/tags/pre') }}
|
||||
- name: Get transfer
|
||||
env:
|
||||
TEMP_PATH: ./temp.zip
|
||||
shell: bash
|
||||
run: |
|
||||
curl -sL --retry 5 https://github.com/Mikubill/transfer/releases/download/v0.4.17/transfer_0.4.17_windows_amd64.zip -o ${{ env.TEMP_PATH }}
|
||||
7z x ${{ env.TEMP_PATH }} -o./
|
||||
rm ${{ env.TEMP_PATH }}
|
||||
- name: Upload to WeTransfer
|
||||
id: transfer
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
max_attempts: 5
|
||||
retry_wait_seconds: 10
|
||||
shell: pwsh
|
||||
timeout_minutes: 5
|
||||
command: |
|
||||
./transfer.exe wet -s -p 16 --no-progress ${{ steps.build-packages.outputs.package-paths }} 2>&1>./wetransfer.log
|
||||
"download-url=$(cat ./wetransfer.log | grep https | cut -f3 -d" ")" >> $env:GITHUB_OUTPUT
|
||||
|
||||
post-build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -764,35 +670,9 @@ jobs:
|
||||
uses: geekyeggo/delete-artifact@v2
|
||||
with:
|
||||
name: ${{ env.CORE_LOVE_ARTIFACT_NAME }}
|
||||
- name: Display summary
|
||||
shell: bash
|
||||
run: |
|
||||
echo "# Summary" >> $GITHUB_STEP_SUMMARY
|
||||
echo "## Version: ${{ needs.get-info.outputs.version-string }}" >> $GITHUB_STEP_SUMMARY
|
||||
echo "## Package Name: ${{ needs.get-info.outputs.base-name }}" >> $GITHUB_STEP_SUMMARY
|
||||
echo "## Download links: " >> $GITHUB_STEP_SUMMARY
|
||||
- name: Display download links
|
||||
shell: python3 {0}
|
||||
run: |
|
||||
import os
|
||||
with open(os.getenv('GITHUB_STEP_SUMMARY'), 'a') as f:
|
||||
if "${{ needs.build-core.result }}" == "success":
|
||||
f.write("- Bare love packages: [WeTransfer](${{ needs.build-core.outputs.download-url }})\n")
|
||||
if "${{ needs.build-android.result }}" == "success":
|
||||
f.write("- Android packages: [WeTransfer](${{ needs.build-android.outputs.download-url }})\n")
|
||||
if "${{ needs.build-ios.result }}" == "success":
|
||||
f.write("- iOS packages: [WeTransfer](${{ needs.build-ios.outputs.download-url }})\n")
|
||||
if "${{ needs.build-linux.result }}" == "success":
|
||||
f.write("- Linux packages: [WeTransfer](${{ needs.build-linux.outputs.download-url }})\n")
|
||||
if "${{ needs.build-macos-appstore.result }}" == "success":
|
||||
f.write("- macOS packages(App Store version): [WeTransfer](${{ needs.build-macos-appstore.outputs.download-url }})\n")
|
||||
if "${{ needs.build-macos-portable.result }}" == "success":
|
||||
f.write("- macOS packages(Portable version): [WeTransfer](${{ needs.build-macos-portable.outputs.download-url }})\n")
|
||||
if "${{ needs.build-windows.result }}" == "success":
|
||||
f.write("- Windows packages: [WeTransfer](${{ needs.build-windows.outputs.download-url }})\n")
|
||||
- name: Send Discord message
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: Sniddl/discord-commits@v1.5
|
||||
uses: Sniddl/discord-commits@v1.6
|
||||
with:
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
message: "Github Actions for **${{ github.repository }}**."
|
||||
@@ -811,7 +691,6 @@ jobs:
|
||||
"fields":[
|
||||
{"name":"Version","value":"${{ needs.get-info.outputs.version-string }}","inline": true},
|
||||
{"name":"Package Name","value":"${{ needs.get-info.outputs.base-name }}","inline": true},
|
||||
{"name":"Status","value":"**Automatic Test:** ${{ needs.auto-test.result }}\n**Core:** ${{ needs.build-core.result }}\n**Android:** ${{ needs.build-android.result }}\n**iOS:** ${{ needs.build-ios.result }}\n**Linux:** ${{ needs.build-linux.result }}\n**macOS App Store:** ${{ needs.build-macos-appstore.result }}\n**macOS portable:** ${{ needs.build-macos-portable.result }}\n**Windows:** ${{ needs.build-windows.result }}"},
|
||||
{"name":"Download Links","value":"**Core:** ${{ needs.build-core.outputs.download-url}}\n**Android:** ${{ needs.build-android.outputs.download-url }}\n**iOS:** ${{ needs.build-ios.outputs.download-url }}\n**Linux:** ${{ needs.build-linux.outputs.download-url }}\n**macOS App Store:** ${{ needs.build-macos-appstore.outputs.download-url }}\n**macOS portable:** ${{ needs.build-macos-portable.outputs.download-url }}\n**Windows:** ${{ needs.build-windows.outputs.download-url}}"}
|
||||
{"name":"Status","value":"**Automatic Test:** ${{ needs.auto-test.result }}\n**Core:** ${{ needs.build-core.result }}\n**Android:** ${{ needs.build-android.result }}\n**iOS:** ${{ needs.build-ios.result }}\n**Linux:** ${{ needs.build-linux.result }}\n**macOS App Store:** ${{ needs.build-macos-appstore.result }}\n**macOS portable:** ${{ needs.build-macos-portable.result }}\n**Windows:** ${{ needs.build-windows.result }}"}
|
||||
]
|
||||
}'
|
||||
|
||||
Submodule Zframework updated: c64bfe444b...7f7b0eb857
55
conf.lua
55
conf.lua
@@ -27,38 +27,6 @@ function love.conf(t)
|
||||
t.audio.mixwithsystem=true
|
||||
end
|
||||
|
||||
local W=t.window
|
||||
W.title="Techmino "..require "version".string
|
||||
if portrait then
|
||||
W.width,W.height=720,1280
|
||||
W.minwidth,W.minheight=360,640
|
||||
else
|
||||
W.width,W.height=1280,720
|
||||
W.minwidth,W.minheight=640,360
|
||||
end
|
||||
|
||||
W.vsync=0 -- Unlimited FPS
|
||||
W.msaa=msaa -- Multi-sampled antialiasing
|
||||
W.depth=0 -- Bits/samp of depth buffer
|
||||
W.stencil=1 -- Bits/samp of stencil buffer
|
||||
W.display=1 -- Monitor ID
|
||||
W.highdpi=true -- High-dpi mode for the window on a Retina display
|
||||
W.x,W.y=nil,nil -- Position of the window
|
||||
|
||||
if fs.getInfo('media/image/icon.png') then
|
||||
W.icon='media/image/icon.png'
|
||||
end
|
||||
|
||||
if MOBILE then
|
||||
W.borderless=true
|
||||
W.resizable=false
|
||||
W.fullscreen=true
|
||||
else
|
||||
W.borderless=false
|
||||
W.resizable=true
|
||||
W.fullscreen=false
|
||||
end
|
||||
|
||||
local M=t.modules
|
||||
M.window,M.system,M.event,M.thread=true,true,true,true
|
||||
M.timer,M.math,M.data=true,true,true
|
||||
@@ -66,4 +34,27 @@ function love.conf(t)
|
||||
M.graphics,M.font,M.image=true,true,true
|
||||
M.mouse,M.touch,M.keyboard,M.joystick=true,true,true,true
|
||||
M.physics=false
|
||||
|
||||
local W=t.window
|
||||
W.vsync=0 -- Unlimited FPS
|
||||
W.msaa=msaa -- Multi-sampled antialiasing
|
||||
W.depth=0 -- Bits/samp of depth buffer
|
||||
W.stencil=1 -- Bits/samp of stencil buffer
|
||||
W.display=1 -- Monitor ID
|
||||
W.highdpi=true -- High-dpi mode for the window on a Retina display
|
||||
W.x,W.y=nil,nil -- Position of the window
|
||||
W.borderless=MOBILE -- Display window frame
|
||||
W.resizable=not MOBILE -- Whether window is resizable
|
||||
W.fullscreentype=MOBILE and "exclusive" or "desktop" -- Fullscreen type
|
||||
if portrait then
|
||||
W.width,W.height=720,1280
|
||||
W.minwidth,W.minheight=360,640
|
||||
else
|
||||
W.width,W.height=1280,720
|
||||
W.minwidth,W.minheight=640,360
|
||||
end
|
||||
W.title="Techmino "..require "version".string -- Window title
|
||||
if fs.getInfo('media/image/icon.png') then
|
||||
W.icon='media/image/icon.png'
|
||||
end
|
||||
end
|
||||
|
||||
13
main.lua
13
main.lua
@@ -25,7 +25,7 @@ TIME=love.timer.getTime
|
||||
|
||||
-- Global Vars & Settings
|
||||
SFXPACKS={'chiptune'}
|
||||
VOCPACKS={'miya','mono','xiaoya','miku'}
|
||||
VOCPACKS={'miya','mono','xiaoya','flore','miku','zundamon'}
|
||||
FIRSTLAUNCH=false
|
||||
DAILYLAUNCH=false
|
||||
|
||||
@@ -271,7 +271,9 @@ IMG.init{
|
||||
monoCH='media/image/characters/mono.png',
|
||||
xiaoyaCH='media/image/characters/xiaoya.png',
|
||||
xiaoyaOmino='media/image/characters/xiaoya_Omino.png',
|
||||
floreCH='media/image/characters/flore.png',
|
||||
mikuCH='media/image/characters/miku.png',
|
||||
zundamonCH='media/image/characters/zundamon.png',
|
||||
z={
|
||||
character='media/image/characters/z_character.png',
|
||||
screen1='media/image/characters/z_screen1.png',
|
||||
@@ -333,7 +335,7 @@ SKIN.load{
|
||||
SFX.init((function()--[Warning] Not loading files here, just get the list of sound needed
|
||||
local L={}
|
||||
for _,v in next,fs.getDirectoryItems('media/effect/chiptune/') do
|
||||
if FILE.isSafe('media/effect/chiptune/'..v,"Dangerous file : %SAVE%/media/effect/chiptune/"..v) then
|
||||
if FILE.isSafe('media/effect/chiptune/'..v) then
|
||||
table.insert(L,v:sub(1,-5))
|
||||
end
|
||||
end
|
||||
@@ -342,7 +344,7 @@ end)())
|
||||
BGM.init((function()
|
||||
local L={}
|
||||
for _,v in next,fs.getDirectoryItems('media/music') do
|
||||
if FILE.isSafe('media/music/'..v,"Dangerous file : %SAVE%/media/music/"..v) then
|
||||
if FILE.isSafe('media/music/'..v) then
|
||||
L[v:sub(1,-5)]='media/music/'..v
|
||||
end
|
||||
end
|
||||
@@ -350,7 +352,7 @@ BGM.init((function()
|
||||
end)())
|
||||
VOC.init{
|
||||
'zspin','sspin','jspin','lspin','tspin','ospin','ispin','pspin','qspin','fspin','espin','uspin','vspin','wspin','xspin','rspin','yspin','nspin','hspin','cspin',
|
||||
'single','double','triple','techrash','pentacrash','hexacrash',
|
||||
'single','double','triple','techrash','pentacrash','hexacrash','heptacrash','octacrash','nonacrash','decacrash','undecacrash','dodecacrash','tridecacrash','tetradecacrash','pentadecacrash','hexadecacrash','heptadecacrash','octadecacrash','nonadecacrash','ultracrash','impossicrash',
|
||||
'mini','b2b','b3b',
|
||||
'perfect_clear','half_clear',
|
||||
'win','lose','bye',
|
||||
@@ -502,6 +504,7 @@ LANG.init('zh',
|
||||
ja=require'parts.language.lang_ja',
|
||||
symbol=require'parts.language.lang_symbol',
|
||||
zh_code=require'parts.language.lang_zh_code',
|
||||
vi=require'parts.language.lang_vi',
|
||||
-- 1. Add language file to LANG folder;
|
||||
-- 2. Require it;
|
||||
-- 3. Add a button in parts/scenes/lang.lua;
|
||||
@@ -601,6 +604,8 @@ for _,fileName in next,fs.getDirectoryItems('replay') do
|
||||
end
|
||||
table.sort(REPLAY,function(a,b) return a.fileName>b.fileName end)
|
||||
|
||||
AUTHURL="https://studio26f.org/oauth?product=techmino"
|
||||
AUTHHOST="cafuuchino1.3322.org:8081"
|
||||
WS.switchHost('cafuuchino1.3322.org','10026','/techmino/ws/v1')
|
||||
HTTP.setHost("cafuuchino1.3322.org:10026")
|
||||
HTTP.setThreadCount(1)
|
||||
|
||||
BIN
media/image/characters/flore.png
Normal file
BIN
media/image/characters/flore.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 91 KiB |
BIN
media/image/characters/zundamon.png
Normal file
BIN
media/image/characters/zundamon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 99 KiB |
BIN
media/vocal/flore/b2b_1.ogg
Normal file
BIN
media/vocal/flore/b2b_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/b2b_2.ogg
Normal file
BIN
media/vocal/flore/b2b_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/b2b_3.ogg
Normal file
BIN
media/vocal/flore/b2b_3.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/b3b_1.ogg
Normal file
BIN
media/vocal/flore/b3b_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/b3b_2.ogg
Normal file
BIN
media/vocal/flore/b3b_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/b3b_3.ogg
Normal file
BIN
media/vocal/flore/b3b_3.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/bye_1.ogg
Normal file
BIN
media/vocal/flore/bye_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/bye_2.ogg
Normal file
BIN
media/vocal/flore/bye_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/bye_3.ogg
Normal file
BIN
media/vocal/flore/bye_3.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/bye_4.ogg
Normal file
BIN
media/vocal/flore/bye_4.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/bye_5.ogg
Normal file
BIN
media/vocal/flore/bye_5.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/bye_6.ogg
Normal file
BIN
media/vocal/flore/bye_6.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/cspin.ogg
Normal file
BIN
media/vocal/flore/cspin.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/decacrash_1.ogg
Normal file
BIN
media/vocal/flore/decacrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/decacrash_2.ogg
Normal file
BIN
media/vocal/flore/decacrash_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/dodecacrash_1.ogg
Normal file
BIN
media/vocal/flore/dodecacrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/double_1.ogg
Normal file
BIN
media/vocal/flore/double_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/double_2.ogg
Normal file
BIN
media/vocal/flore/double_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/double_3.ogg
Normal file
BIN
media/vocal/flore/double_3.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/doubt_1.ogg
Normal file
BIN
media/vocal/flore/doubt_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/doubt_2.ogg
Normal file
BIN
media/vocal/flore/doubt_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/doubt_3.ogg
Normal file
BIN
media/vocal/flore/doubt_3.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/espin.ogg
Normal file
BIN
media/vocal/flore/espin.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/fspin.ogg
Normal file
BIN
media/vocal/flore/fspin.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/half_clear_1.ogg
Normal file
BIN
media/vocal/flore/half_clear_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/half_clear_2.ogg
Normal file
BIN
media/vocal/flore/half_clear_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/happy_1.ogg
Normal file
BIN
media/vocal/flore/happy_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/happy_2.ogg
Normal file
BIN
media/vocal/flore/happy_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/happy_3.ogg
Normal file
BIN
media/vocal/flore/happy_3.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/heptacrash_1.ogg
Normal file
BIN
media/vocal/flore/heptacrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/heptacrash_2.ogg
Normal file
BIN
media/vocal/flore/heptacrash_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/heptadecacrash_1.ogg
Normal file
BIN
media/vocal/flore/heptadecacrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/hexacrash_1.ogg
Normal file
BIN
media/vocal/flore/hexacrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/hexacrash_2.ogg
Normal file
BIN
media/vocal/flore/hexacrash_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/hexacrash_3.ogg
Normal file
BIN
media/vocal/flore/hexacrash_3.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/hexadecacrash_1.ogg
Normal file
BIN
media/vocal/flore/hexadecacrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/hspin.ogg
Normal file
BIN
media/vocal/flore/hspin.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/impossicrash_1.ogg
Normal file
BIN
media/vocal/flore/impossicrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/ispin_1.ogg
Normal file
BIN
media/vocal/flore/ispin_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/ispin_2.ogg
Normal file
BIN
media/vocal/flore/ispin_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/jspin_1.ogg
Normal file
BIN
media/vocal/flore/jspin_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/jspin_2.ogg
Normal file
BIN
media/vocal/flore/jspin_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/lose_1.ogg
Normal file
BIN
media/vocal/flore/lose_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/lose_2.ogg
Normal file
BIN
media/vocal/flore/lose_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/lose_3.ogg
Normal file
BIN
media/vocal/flore/lose_3.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/lose_4.ogg
Normal file
BIN
media/vocal/flore/lose_4.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/lose_5.ogg
Normal file
BIN
media/vocal/flore/lose_5.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/lose_6.ogg
Normal file
BIN
media/vocal/flore/lose_6.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/lspin_1.ogg
Normal file
BIN
media/vocal/flore/lspin_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/lspin_2.ogg
Normal file
BIN
media/vocal/flore/lspin_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/mini_1.ogg
Normal file
BIN
media/vocal/flore/mini_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/mini_2.ogg
Normal file
BIN
media/vocal/flore/mini_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/mini_3.ogg
Normal file
BIN
media/vocal/flore/mini_3.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/nonacrash_1.ogg
Normal file
BIN
media/vocal/flore/nonacrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/nonacrash_2.ogg
Normal file
BIN
media/vocal/flore/nonacrash_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/nonadecacrash_1.ogg
Normal file
BIN
media/vocal/flore/nonadecacrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/nspin.ogg
Normal file
BIN
media/vocal/flore/nspin.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/octacrash_1.ogg
Normal file
BIN
media/vocal/flore/octacrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/octacrash_2.ogg
Normal file
BIN
media/vocal/flore/octacrash_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/octadecacrash_1.ogg
Normal file
BIN
media/vocal/flore/octadecacrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/ospin.ogg
Normal file
BIN
media/vocal/flore/ospin.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/ospin_1.ogg
Normal file
BIN
media/vocal/flore/ospin_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/pentacrash_1.ogg
Normal file
BIN
media/vocal/flore/pentacrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/pentacrash_2.ogg
Normal file
BIN
media/vocal/flore/pentacrash_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/pentacrash_3.ogg
Normal file
BIN
media/vocal/flore/pentacrash_3.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/pentadecacrash_1.ogg
Normal file
BIN
media/vocal/flore/pentadecacrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/perfect_clear_1.ogg
Normal file
BIN
media/vocal/flore/perfect_clear_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/perfect_clear_2.ogg
Normal file
BIN
media/vocal/flore/perfect_clear_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/pspin.ogg
Normal file
BIN
media/vocal/flore/pspin.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/qspin.ogg
Normal file
BIN
media/vocal/flore/qspin.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/rspin.ogg
Normal file
BIN
media/vocal/flore/rspin.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/single_1.ogg
Normal file
BIN
media/vocal/flore/single_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/single_2.ogg
Normal file
BIN
media/vocal/flore/single_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/single_3.ogg
Normal file
BIN
media/vocal/flore/single_3.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/sspin_1.ogg
Normal file
BIN
media/vocal/flore/sspin_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/sspin_2.ogg
Normal file
BIN
media/vocal/flore/sspin_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/techrash_1.ogg
Normal file
BIN
media/vocal/flore/techrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/techrash_2.ogg
Normal file
BIN
media/vocal/flore/techrash_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/techrash_3.ogg
Normal file
BIN
media/vocal/flore/techrash_3.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/test_1.ogg
Normal file
BIN
media/vocal/flore/test_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/test_2.ogg
Normal file
BIN
media/vocal/flore/test_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/test_3.ogg
Normal file
BIN
media/vocal/flore/test_3.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/test_4.ogg
Normal file
BIN
media/vocal/flore/test_4.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/tetradecacrash_1.ogg
Normal file
BIN
media/vocal/flore/tetradecacrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/tridecacrash_1.ogg
Normal file
BIN
media/vocal/flore/tridecacrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/triple_1.ogg
Normal file
BIN
media/vocal/flore/triple_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/triple_2.ogg
Normal file
BIN
media/vocal/flore/triple_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/triple_3.ogg
Normal file
BIN
media/vocal/flore/triple_3.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/tspin_1.ogg
Normal file
BIN
media/vocal/flore/tspin_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/tspin_2.ogg
Normal file
BIN
media/vocal/flore/tspin_2.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/ultracrash_1.ogg
Normal file
BIN
media/vocal/flore/ultracrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/undecacrash_1.ogg
Normal file
BIN
media/vocal/flore/undecacrash_1.ogg
Normal file
Binary file not shown.
BIN
media/vocal/flore/uspin.ogg
Normal file
BIN
media/vocal/flore/uspin.ogg
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user