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

No files matched your search

+8 -5
View File
@@ -61,19 +61,22 @@ jobs:
ls -alh ls -alh
- name: Zip - name: Zip
run: | run: |
ls ./server cd ./server
zip ${{ env.ZIPNAME }}.zip ./server/${{ env.FILENAME }} ./server/${{ env.TGFILENAME }} ./server/${{ env.WEBFILENAME }} ./server/${{ env.WCFILENAME }} mkdir plugins
mv ${{ env.TGFILENAME }} plugins/
mv ${{ env.WEBFILENAME }} plugins/
mv ${{ env.WCFILENAME }} plugins/
zip -r ${{ env.ZIPNAME }}.zip ${{ env.FILENAME }} plugins
ls ls
ls ./server
- name: Upload files to Artifacts - name: Upload files to Artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: ${{ env.ZIPNAME }} name: ${{ env.ZIPNAME }}
path: ${{ env.ZIPNAME }}.zip path: server/${{ env.ZIPNAME }}.zip
- name: Upload binaries to release - name: Upload binaries to release
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ env.ZIPNAME }}.zip file: server/${{ env.ZIPNAME }}.zip
tag: ${{ github.ref }} tag: ${{ github.ref }}
file_glob: true file_glob: true
+1 -1
View File
@@ -142,7 +142,7 @@ func Init() {
pluginNo := 1 pluginNo := 1
filepath.Walk(root, func(path string, info os.FileInfo, err error) error { 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) socketPath := fmt.Sprintf("%s/%d.socket", root, pluginNo)