-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
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.
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.
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.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.