cocktailpeanut 1 ماه پیش
والد
کامیت
bf6be463cb
3فایلهای تغییر یافته به همراه54 افزوده شده و 29 حذف شده
  1. 28 26
      .github/workflows/build.yml
  2. 23 0
      README.md
  3. 3 3
      package.json

+ 28 - 26
.github/workflows/build.yml

@@ -61,32 +61,34 @@ jobs:
           release: false
           args: --win --dir  # Build win-unpacked only
 
-#      - name: upload-unsigned-artifact
-#        id: upload-unsigned-artifact
-#        uses: actions/upload-artifact@v4
-#        with:
-#          #path: dist-win32
-#          path: dist-win32/win-unpacked/Pinokio.exe
-#          retention-days: 1
-#
-#      - id: Sign
-#        if: ${{ runner.os == 'Windows' }}
-#        uses: signpath/github-action-submit-signing-request@v1.1
-#        with:
-#          api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
-#          organization-id: 'd2da0df2-dc12-4516-8222-87178d5ebf3d'
-#          project-slug: 'pinokio'
-#          signing-policy-slug: 'test-signing'
-#          github-artifact-id: '${{ steps.upload-unsigned-artifact.outputs.artifact-id }}'
-#          wait-for-completion: true
-#          output-artifact-directory: './signed-windows'
-#          parameters: |
-#            version: ${{ toJSON(github.ref_name) }}
-#
-#      # Replace the unsigned exe with the signed exe
-#      - name: Replace with signed exe
-#        run: |
-#          copy /Y ".\signed-windows\Pinokio.exe" ".\dist-win32\win-unpacked\Pinokio.exe"
+### sign start
+      - name: upload-unsigned-artifact
+        id: upload-unsigned-artifact
+        uses: actions/upload-artifact@v4
+        with:
+          #path: dist-win32
+          path: dist-win32/win-unpacked/Pinokio.exe
+          retention-days: 1
+
+      - id: Sign
+        if: ${{ runner.os == 'Windows' }}
+        uses: signpath/github-action-submit-signing-request@v1.1
+        with:
+          api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
+          organization-id: 'd2da0df2-dc12-4516-8222-87178d5ebf3d'
+          project-slug: 'pinokio'
+          signing-policy-slug: 'test-signing'
+          github-artifact-id: '${{ steps.upload-unsigned-artifact.outputs.artifact-id }}'
+          wait-for-completion: true
+          output-artifact-directory: './signed-windows'
+          parameters: |
+            version: ${{ toJSON(github.ref_name) }}
+
+      # Replace the unsigned exe with the signed exe
+      - name: Replace with signed exe
+        run: |
+          copy /Y ".\signed-windows\Pinokio.exe" ".\dist-win32\win-unpacked\Pinokio.exe"
+### sign end
 
       # Build the final installer from the signed exe
       - name: Build final installer

+ 23 - 0
README.md

@@ -0,0 +1,23 @@
+# Pinokio
+
+Launch Anything.
+
+# Script Policy
+
+Pinokio is a 1-click launcher for any open-source project. Think of it as a terminal application with a user-friendly interface that can programmatically interact with scripts.
+
+This means:
+
+1. **Scripts can run anything:** Just like terminal apps can run shell scripts, Pinokio scripts can run any command, download files, and execute them. Essentially, Pinokio is a user-friendly terminal with a UI.
+2. **How scripts can be run:** There are two ways to run scripts on Pinokio:
+    1. **Write your own:** Just like writing and executing shell scripts in the terminal, you can create your own scripts and run them locally.
+    2. **Install from the "Discover" page:** Vetted scripts are manually listed in the directory, tracked via Git, and frozen under the official GitHub organization. These are guaranteed to be secure and safe to install.
+3. **Verified Scripts:** To be featured on the "Discover" page, scripts must go through the following strict process:
+    1. **Publisher Verification:** You must be personally verified to submit scripts for consideration. Contact the Pinokio admin (https://x.com/cocktailpeanut) to request verification.
+    2. **Github Organization Invitation:** Once verified, you'll be invited to the official Pinokio Factory GitHub organization as a contributor. Only members of this organization can publish scripts eligible for the "Discover" page. Abusing publishing privileges may result in removal from the organization.
+    3. **Repository Transfer and Freeze** To apply for a feature, you must transfer your script repository to the Pinokio Factory GitHub organization. Follow this guide: https://docs.github.com/en/repositories/creating-and-managing-repositories/transferring-a-repository
+    4. **Feature Application:** Once your repository is fully transferred and controlled by the organization, it is considered "frozen". You can then request to feature it on the "Discover" page by contacting the admin.
+    5. **Review:** The script will be thoroughly reviewed and tested by the Pinokio admin. If verified as safe, it will be featured on the "Discover" page.
+    6. **Troubleshooting:** If any issues arise after a script is featured, the Pinokio admin may:
+        - Delist the script from the "Discover" page
+        - Modify the script to resolve the issue. Since the script is under the Pinokio Factory organization, the admin has the rights to make necessary fixes.

+ 3 - 3
package.json

@@ -1,7 +1,7 @@
 {
   "name": "Pinokio",
   "private": true,
-  "version": "3.20.25",
+  "version": "3.21.0",
   "homepage": "https://pinokio.co",
   "description": "pinokio",
   "main": "main.js",
@@ -31,7 +31,7 @@
     "publish": [
       {
         "provider": "github",
-        "owner": "peanutcocktail",
+        "owner": "pinokiocomputer",
         "repo": "pinokio"
       }
     ],
@@ -116,7 +116,7 @@
     "electron-store": "^8.1.0",
     "electron-updater": "^6.6.2",
     "electron-window-state": "^5.0.3",
-    "pinokiod": "^3.20.25"
+    "pinokiod": "^3.21.0"
   },
   "devDependencies": {
     "@electron/rebuild": "3.2.10",