Skip to content

Commit

Permalink
Upload code
Browse files Browse the repository at this point in the history
  • Loading branch information
Z-Siqi committed Jul 4, 2024
1 parent ed3e3ad commit 43f3190
Show file tree
Hide file tree
Showing 3,479 changed files with 525,556 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Guide
* Extract these files in ONE folder
* Run `build.bat` to generate runnable software
113 changes: 113 additions & 0 deletions app/build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
@echo off

echo Checking environment...

if not exist "%~dp0\static" (
echo Failed! "\static\" folder not found!
echo Press any key to exit
pause>nul
exit 1
)

if not exist "%~dp0\main" (
echo Failed! "\main\" folder not found!
echo Press any key to exit
pause>nul
exit 1
)

if not exist "%~dp0\logo.ico" (
echo Failed! "\main\" folder not found!
echo Press any key to exit
pause>nul
exit 1
)

where npm >nul 2>&1
if %ERRORLEVEL% equ 0 (
echo npm is detected...
) else (
echo Failed! No npm command!
echo Install notejs might fix this.
echo Press any key to exit
pause>nul
exit 1
)

where electron-packager >nul 2>&1
if %ERRORLEVEL% equ 0 (
echo electron-packager is detected...
) else (
echo Failed! No electron-packager command!
echo But npm is detected!
echo Press any key to install electron-packager or press "ctrl+C" to exit
pause>nul
npm install -g electron-packager
)

where asar >nul 2>&1
if %ERRORLEVEL% equ 0 (
echo asar is detected...
) else (
echo Failed! No asar command!
echo But npm is detected!
echo Press any key to install electron-packager or press "ctrl+C" to exit
pause>nul
npm install -g asar
)

echo Done!

if exist "%~dp0\output\Clash for Windows" (
echo Detected old output!
echo Press any key to delete and rebuild
pause>nul
rd /s /q "%~dp0\output\Clash for Windows\"
echo Done!
)

if exist "%~dp0\output\Clash for Windows-win32-x64" (
echo Detected wrong building files!
echo Press any key to delete and continue
pause>nul
rd /s /q "%~dp0\output\Clash for Windows-win32-x64\"
echo Done!
)

if not exist "%~dp0\output" (
md "%~dp0\output"
)

start electron-packager "%~dp0\main" "Clash for Windows" --platform=win32 --arch=x64 --electron-version=29.4.3 --icon="%~dp0\logo.ico" --out="%~dp0\output"

echo Waiting app building...

echo Note:
echo If wait too long, it may mean that the execution has failed. Press "Ctrl+C" or close it directly to terminate the execution.

:waitloop
if exist "%~dp0\output\Clash for Windows-win32-x64" (
echo Done! Adding proxy core files...
timeout /t 1
ren "%~dp0\output\Clash for Windows-win32-x64" "Clash for Windows"
xcopy %~dp0\static\ "%~dp0\output\Clash for Windows\resources\static\" /E /Y
echo Done!
echo Waiting packing app asar...
start asar pack "%~dp0\output\Clash for Windows\resources\app" "%~dp0\output\Clash for Windows\resources\app.asar"
:waitpack
if exist "%~dp0\output\Clash for Windows\resources\app.asar" (
echo Done! Delete old files...
timeout /t 1
rd /s /q "%~dp0\output\Clash for Windows\resources\app\"
echo Finish!
echo Press any key to exit
pause>nul
exit
) else (
timeout /t 3 /nobreak
goto waitpack
)
) else (
timeout /t 5 /nobreak
goto waitloop
)
Binary file added app/logo.ico
Binary file not shown.
21 changes: 21 additions & 0 deletions app/main/ABOUT/LICENSE.electron.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Copyright (c) Electron contributors
Copyright (c) 2013-2020 GitHub Inc.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17 changes: 17 additions & 0 deletions app/main/ABOUT/state.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Disclaimer Statement
1. This software is only intended for the purpose of learning and researching network technology. Users must comply with the laws and regulations in their respective regions and must not use it for illegal purposes. The software will not be held responsible for any actions of the user.

2. Users must strictly abide by the laws, regulations, and policies of their own countries/regions when using this software. Any consequences or liabilities resulting from violations of relevant laws, regulations, and policies shall be borne by the user.

3. The software is not responsible for the transmission of content. Therefore, if any problems or consequences arise from the use of this software, the user shall bear all responsibility.

4. If the software violates any laws and regulations of the user's country/region, the user must immediately stop using it and bear the corresponding legal responsibility.

5. While using this software, the user acknowledges and agrees that the software cannot guarantee network stability, accuracy, timeliness, and security. The software will not be held responsible for any connection problems or inability to connect caused by network congestion, firewall restrictions, DNS pollution, operator interference, and other reasons.

6. The software does not provide technical support and is not responsible for any direct or indirect losses caused by the user's use of this software, including but not limited to property damage, data loss, and other forms of loss.


Links
Official Link: https://github.com/Fndroid/clash_for_windows_pkg
CFW Chinese version link: https://github.com/Z-Siqi/Clash-for-Windows_Chinese
1 change: 1 addition & 0 deletions app/main/dist/electron/287.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/main/dist/electron/295.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/main/dist/electron/585.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/main/dist/electron/editor.worker.js

Large diffs are not rendered by default.

Binary file not shown.
Binary file added app/main/dist/electron/fonts/TwemojiMozilla..ttf
Binary file not shown.
Binary file added app/main/dist/electron/fonts/codicon..ttf
Binary file not shown.
1 change: 1 addition & 0 deletions app/main/dist/electron/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html><head><meta charset=utf-8><title>Clash for Windows</title><script defer=defer src=renderer.js></script></head><body><div id=app></div><script>if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')</script></body></html>
1 change: 1 addition & 0 deletions app/main/dist/electron/main.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions app/main/dist/electron/renderer.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions app/main/dist/electron/renderer.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*!
* Vue.js v2.7.14
* (c) 2014-2022 Evan You
* Released under the MIT License.
*/

/*! @license DOMPurify 2.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.1/LICENSE */
Binary file added app/main/dist/electron/static/icon.ico
Binary file not shown.
Binary file added app/main/dist/electron/static/imgs/2077.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/main/dist/electron/static/imgs/icon_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/main/dist/electron/static/imgs/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/main/dist/electron/static/imgs/logo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/main/dist/electron/static/imgs/logo_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/main/dist/electron/static/imgs/moon_cake.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/main/dist/electron/static/imgs/tray-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/main/dist/electron/static/imgs/tray-status.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/main/dist/electron/static/imgs/tray-text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
22 changes: 22 additions & 0 deletions app/main/node_modules/@babel/runtime/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 43f3190

Please sign in to comment.