Update file paths for source structure refactor
Refactor all references to JavaScript, HTML, and compatibility files to use the new 'src/' directory structure in dev.py and the GitHub Actions workflow. This ensures consistency and correctness after reorganizing source files, and updates file existence checks, file watching, and linting logic accordingly.
This commit is contained in:
1 parent
36ef3969cf
commit
e389d9fc56
2 files changed
+71
-23
No files matched your search
@@ -49,6 +49,34 @@ jobs:
|
||||
}
|
||||
"
|
||||
|
||||
- name: 检查必需文件
|
||||
run: |
|
||||
echo "检查必需文件是否存在..."
|
||||
|
||||
required_files=(
|
||||
"manifest.json"
|
||||
"manifest-firefox.json"
|
||||
"src/background/index.js"
|
||||
"src/content/index.js"
|
||||
"src/popup/popup.js"
|
||||
"src/popup/index.html"
|
||||
"src/shared/compat/webext-compat.js"
|
||||
"src/shared/compat/firefox-compat.js"
|
||||
"src/shared/platform-detector.js"
|
||||
"src/shared/platforms.js"
|
||||
"build.py"
|
||||
"dev.py"
|
||||
)
|
||||
|
||||
for file in "${required_files[@]}"; do
|
||||
if [ -f "$file" ]; then
|
||||
echo "✅ $file"
|
||||
else
|
||||
echo "❌ $file 缺失"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
- name: 运行基础测试
|
||||
run: |
|
||||
echo "运行基础测试..."
|
||||
|
||||
Reference in new issue
Block a user