fix(pc-audit): bat ファイルを CRLF に変換(どこからでも実行可能に)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
posimai 2026-04-21 06:50:59 +09:00
parent d08a0d6eed
commit a2282fe33b
2 changed files with 13 additions and 32 deletions

View File

@ -1,31 +1,21 @@
@echo off @echo off
chcp 65001 > nul cd /d "%~dp0..\.."
echo. echo.
echo =========================== echo === Posimai PC Audit (Share-Safe) ===
echo Posimai PC Audit (共有用)
echo .claude のパスは匿名化されます
echo ===========================
echo. echo.
echo Running audit (share-safe mode)...
cd /d "%~dp0..\..\"
echo [1/2] 監査を実行していますShareSafe モード)...
call npm run audit:pc:share call npm run audit:pc:share
if errorlevel 1 ( if errorlevel 1 (
echo. echo.
echo 監査の実行に失敗しました。 echo ERROR: Audit failed.
pause pause
exit /b 1 exit /b 1
) )
echo. echo.
echo [2/2] レポートをブラウザで開きます... echo Opening report viewer...
start "" "%~dp0report-viewer.html" start "" "%~dp0report-viewer.html"
echo. echo.
echo 完了しました。 echo Done. Select out\latest.json in the browser.
echo ブラウザで report-viewer.html が開いたら、 echo This report is safe to share with IT / engineers.
echo ファイル選択で「out\latest.json」を選んでください。
echo このレポートは社内 IT やエンジニアに共有できます。
echo. echo.
pause pause

View File

@ -1,29 +1,20 @@
@echo off @echo off
chcp 65001 > nul cd /d "%~dp0..\.."
echo. echo.
echo =========================== echo === Posimai PC Audit ===
echo Posimai PC Audit
echo ===========================
echo. echo.
echo Running audit...
cd /d "%~dp0..\..\"
echo [1/2] 監査を実行しています...
call npm run audit:pc call npm run audit:pc
if errorlevel 1 ( if errorlevel 1 (
echo. echo.
echo 監査の実行に失敗しました。 echo ERROR: Audit failed.
pause pause
exit /b 1 exit /b 1
) )
echo. echo.
echo [2/2] レポートをブラウザで開きます... echo Opening report viewer...
start "" "%~dp0report-viewer.html" start "" "%~dp0report-viewer.html"
echo. echo.
echo 完了しました。 echo Done. Select out\latest.json in the browser.
echo ブラウザで report-viewer.html が開いたら、
echo ファイル選択で「out\latest.json」を選んでください。
echo. echo.
pause pause