This commit is contained in:
jinnrry 2024-03-01 21:50:13 +08:00
parent e1829bdc56
commit 956e836e51
2 changed files with 9 additions and 6 deletions

View File

@ -61,19 +61,22 @@ jobs:
ls -alh
- name: Zip
run: |
ls ./server
zip ${{ env.ZIPNAME }}.zip ./server/${{ env.FILENAME }} ./server/${{ env.TGFILENAME }} ./server/${{ env.WEBFILENAME }} ./server/${{ env.WCFILENAME }}
cd ./server
mkdir plugins
mv ${{ env.TGFILENAME }} plugins/
mv ${{ env.WEBFILENAME }} plugins/
mv ${{ env.WCFILENAME }} plugins/
zip -r ${{ env.ZIPNAME }}.zip ${{ env.FILENAME }} plugins
ls
ls ./server
- name: Upload files to Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ env.ZIPNAME }}
path: ${{ env.ZIPNAME }}.zip
path: server/${{ env.ZIPNAME }}.zip
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ env.ZIPNAME }}.zip
file: server/${{ env.ZIPNAME }}.zip
tag: ${{ github.ref }}
file_glob: true

View File

@ -142,7 +142,7 @@ func Init() {
pluginNo := 1
filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
if info != nil && !info.IsDir() && !strings.Contains(info.Name(), ".") {
if info != nil && !info.IsDir() && (!strings.Contains(info.Name(), ".") || strings.Contains(info.Name(), ".exe")) {
socketPath := fmt.Sprintf("%s/%d.socket", root, pluginNo)