LoginSignup
8
14

【Pyinstaller】Windows Defenderに引っかからないようにする

Last updated at Posted at 2023-10-15

背景

要因

対応:bootloaderを再構築する

① pyinstallerを任意のフォルダにcloneする

git clone https://github.com/pyinstaller/pyinstaller.git

② bootloaderを再構築

  • bootloaderに移動して、環境をクリーンにする
cd pyinstaller/bootloader
python ./waf distclean all

コンパイラ(ex.MinGW、MinGW-w64)が必要です。
ここでエラーが発生する場合は、コンパイラをインストールしてください。

③ wheelのインストール

  • bootloaderを再構築したpyinstallerをインストールするために、wheelをインストールする
pip install wheel

④ pyinstallerをインストール

  • pyinstallerフォルダ下に移動して、再構築したpyinstallerをインストールする
cd pyinstaller
pip install .

あとは従来と同様にpyinstallerコマンドを実行すれば、windows defenderに引っかからずにexe化できます。

参考資料

  1. 有用なプログラムに見せかけて、裏で不正な処理を行うもの

8
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
14