Skip to content

Commit 3ad7e42

Browse files
committed
chore: don't use pyTooling and chmod on build-txz
1 parent f738108 commit 3ad7e42

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,10 @@ jobs:
145145
run: pnpm run build-and-pack
146146

147147
- name: Upload tgz to Github artifacts
148-
uses: pyTooling/upload-artifact@v4 # Used to preserve permissions
148+
uses: actions/upload-artifact@v4
149149
with:
150150
name: unraid-api
151151
path: ${{ github.workspace }}/api/deploy/pack/*
152-
compression-level: 2
153152

154153
build-unraid-ui-webcomponents:
155154
name: Build Unraid UI Library (Webcomponent Version)
@@ -341,7 +340,7 @@ jobs:
341340
path: ${{ github.workspace }}/plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/unraid-components/nuxt
342341
merge-multiple: true
343342
- name: Download Unraid API
344-
uses: pyTooling/download-artifact@v4 # Used to preserve permissions
343+
uses: actions/download-artifact@v4
345344
with:
346345
name: unraid-api
347346
path: ${{ github.workspace }}/plugin/source/dynamix.unraid.net/usr/local/unraid-api

plugin/builder/build-txz.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ const validateSourceDir = async (validatedEnv: TxzEnv) => {
7171
if (!existsSync(apiDir)) {
7272
throw new Error(`API package.json file ${apiDir} does not exist`);
7373
}
74+
// Now CHMOD the api/dist directory files to allow execution
75+
await $`chmod +x ${apiDir}/dist/*.js`
7476
};
7577

7678
const buildTxz = async (validatedEnv: TxzEnv) => {

0 commit comments

Comments
 (0)