diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e3911d..320e6df 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 \ No newline at end of file diff --git a/server/hooks/base.go b/server/hooks/base.go index 2aa68e2..08dd626 100644 --- a/server/hooks/base.go +++ b/server/hooks/base.go @@ -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)