Skip to content

Commit

Permalink
產生安裝包
Browse files Browse the repository at this point in the history
  • Loading branch information
ITyouG committed Sep 15, 2021
1 parent b613fca commit a50f74a
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 30 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Fortinet-Auth-Login
# Fortinet-Auth-Login

Binary file added auth.ico
Binary file not shown.
Binary file added auth.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 auth_Install/auth-hello.exe
Binary file not shown.
58 changes: 29 additions & 29 deletions auth-install.bat → auth_Install/auth-install.bat
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
@echo off

chcp 65001 > NUL

echo **************************************************************
echo * 歡迎使用 auth-Hello *
echo * 安裝後,可以自動登入 *
echo * by George *
echo **************************************************************
echo.

set /p UN=Enter Username:
set /p PSWD=Enter password:


echo %UN% > %userprofile%\.helloauthcred
echo %PSWD% >> %userprofile%\.helloauthcred
echo.
echo 初始化設定中...

taskkill /f /im auth-Hello.exe /fi "username eq %USERNAME%" > NUL
xcopy /y auth-Hello.exe %APPDATA%"\Microsoft\Windows\Start Menu\Programs\Startup" >NUL
start %APPDATA%"\Microsoft\Windows\Start Menu\Programs\Startup"\auth-Hello.exe

echo.
echo 恭喜您,完成設定囉 ^^.^<
echo.

pause
@echo off

chcp 65001 > NUL

echo **************************************************************
echo * 歡迎使用 auth-hello *
echo * 安裝後可以自動登入防火牆安全驗證 *
echo * by George *
echo **************************************************************
echo.

set /p UN=Enter Username:
set /p PSWD=Enter password:


echo %UN% > %userprofile%\.helloauthcred
echo %PSWD% >> %userprofile%\.helloauthcred
echo.
echo 初始化設定中...

taskkill /f /im auth-Hello.exe /fi "username eq %USERNAME%" > NUL
xcopy /y auth-hello.exe %APPDATA%"\Microsoft\Windows\Start Menu\Programs\Startup" >NUL
start %APPDATA%"\Microsoft\Windows\Start Menu\Programs\Startup"\auth-hello.exe

echo.
echo 恭喜您,完成設定囉 ^^.^<
echo.

pause
1 change: 1 addition & 0 deletions helpScript.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyinstaller --onefile --icon=auth.ico --clean --noconsole auth.py

0 comments on commit a50f74a

Please sign in to comment.