screeps 4.3.0-beta.9 โ 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,9 +11,6 @@ jobs:
|
|
|
11
11
|
- os: ubuntu-latest
|
|
12
12
|
platform: linux
|
|
13
13
|
container: node:24-bullseye
|
|
14
|
-
- os: macos-latest
|
|
15
|
-
platform: macos
|
|
16
|
-
npm_arch: universal
|
|
17
14
|
- os: windows-latest
|
|
18
15
|
platform: windows
|
|
19
16
|
runs-on: ${{ matrix.os }}
|
|
@@ -30,17 +27,101 @@ jobs:
|
|
|
30
27
|
node-version: '24.14.0'
|
|
31
28
|
- name: ๐ท Install
|
|
32
29
|
run: npm ci
|
|
33
|
-
env:
|
|
34
|
-
npm_config_arch: ${{ matrix.npm_arch }}
|
|
35
30
|
- name: ๐ฆ Packing binaries
|
|
36
31
|
shell: bash
|
|
37
32
|
run: |
|
|
38
33
|
mkdir -p dist
|
|
39
34
|
cp node_modules/isolated-vm/build/Release/isolated_vm.node dist/
|
|
40
35
|
cp node_modules/@screeps/driver/native/build/Release/native.node dist/
|
|
41
|
-
|
|
42
36
|
- name: ๐ฆ๏ธ Upload binaries
|
|
43
37
|
uses: actions/upload-artifact@v4
|
|
44
38
|
with:
|
|
45
39
|
name: binaries-${{ matrix.platform }}
|
|
40
|
+
path: dist/
|
|
41
|
+
|
|
42
|
+
build-macos-x64:
|
|
43
|
+
runs-on: macos-latest
|
|
44
|
+
permissions:
|
|
45
|
+
contents: read
|
|
46
|
+
steps:
|
|
47
|
+
- name: โคต๏ธ Checkout
|
|
48
|
+
uses: actions/checkout@v4
|
|
49
|
+
- name: ๐จ Setup node
|
|
50
|
+
uses: actions/setup-node@v4
|
|
51
|
+
with:
|
|
52
|
+
node-version: '24.14.0'
|
|
53
|
+
- name: ๐ท Install (no scripts)
|
|
54
|
+
run: npm ci --ignore-scripts
|
|
55
|
+
- name: ๐จ Build native modules (x64)
|
|
56
|
+
run: npm rebuild isolated-vm @screeps/driver
|
|
57
|
+
env:
|
|
58
|
+
npm_config_arch: x64
|
|
59
|
+
- name: ๐ฆ Pack
|
|
60
|
+
run: |
|
|
61
|
+
mkdir -p dist
|
|
62
|
+
cp node_modules/isolated-vm/build/Release/isolated_vm.node dist/
|
|
63
|
+
cp node_modules/@screeps/driver/native/build/Release/native.node dist/
|
|
64
|
+
- name: ๐ฆ๏ธ Upload
|
|
65
|
+
uses: actions/upload-artifact@v4
|
|
66
|
+
with:
|
|
67
|
+
name: binaries-macos-x64
|
|
68
|
+
path: dist/
|
|
69
|
+
|
|
70
|
+
build-macos-arm64:
|
|
71
|
+
runs-on: macos-latest
|
|
72
|
+
permissions:
|
|
73
|
+
contents: read
|
|
74
|
+
steps:
|
|
75
|
+
- name: โคต๏ธ Checkout
|
|
76
|
+
uses: actions/checkout@v4
|
|
77
|
+
- name: ๐จ Setup node
|
|
78
|
+
uses: actions/setup-node@v4
|
|
79
|
+
with:
|
|
80
|
+
node-version: '24.14.0'
|
|
81
|
+
- name: ๐ท Install (no scripts)
|
|
82
|
+
run: npm ci --ignore-scripts
|
|
83
|
+
- name: ๐จ Build native modules (arm64)
|
|
84
|
+
run: npm rebuild isolated-vm @screeps/driver
|
|
85
|
+
env:
|
|
86
|
+
npm_config_arch: arm64
|
|
87
|
+
- name: ๐ฆ Pack
|
|
88
|
+
run: |
|
|
89
|
+
mkdir -p dist
|
|
90
|
+
cp node_modules/isolated-vm/build/Release/isolated_vm.node dist/
|
|
91
|
+
cp node_modules/@screeps/driver/native/build/Release/native.node dist/
|
|
92
|
+
- name: ๐ฆ๏ธ Upload
|
|
93
|
+
uses: actions/upload-artifact@v4
|
|
94
|
+
with:
|
|
95
|
+
name: binaries-macos-arm64
|
|
96
|
+
path: dist/
|
|
97
|
+
|
|
98
|
+
lipo-macos:
|
|
99
|
+
needs: [build-macos-x64, build-macos-arm64]
|
|
100
|
+
runs-on: macos-latest
|
|
101
|
+
permissions:
|
|
102
|
+
contents: read
|
|
103
|
+
steps:
|
|
104
|
+
- name: โฌ๏ธ Download x64
|
|
105
|
+
uses: actions/download-artifact@v4
|
|
106
|
+
with:
|
|
107
|
+
name: binaries-macos-x64
|
|
108
|
+
path: x64
|
|
109
|
+
- name: โฌ๏ธ Download arm64
|
|
110
|
+
uses: actions/download-artifact@v4
|
|
111
|
+
with:
|
|
112
|
+
name: binaries-macos-arm64
|
|
113
|
+
path: arm64
|
|
114
|
+
- name: ๐ Create universal binaries
|
|
115
|
+
run: |
|
|
116
|
+
mkdir -p dist
|
|
117
|
+
lipo -create -output dist/isolated_vm.node x64/isolated_vm.node arm64/isolated_vm.node
|
|
118
|
+
lipo -create -output dist/native.node x64/native.node arm64/native.node
|
|
119
|
+
- name: ๐ง Verify
|
|
120
|
+
run: |
|
|
121
|
+
lipo -info dist/isolated_vm.node
|
|
122
|
+
lipo -info dist/native.node
|
|
123
|
+
- name: ๐ฆ๏ธ Upload binaries
|
|
124
|
+
uses: actions/upload-artifact@v4
|
|
125
|
+
with:
|
|
126
|
+
name: binaries-macos
|
|
46
127
|
path: dist/
|
|
@@ -5,32 +5,39 @@ on:
|
|
|
5
5
|
- 'build-package'
|
|
6
6
|
jobs:
|
|
7
7
|
build:
|
|
8
|
-
|
|
9
|
-
matrix:
|
|
10
|
-
include:
|
|
11
|
-
- os: ubuntu-latest
|
|
12
|
-
platform: linux
|
|
13
|
-
container: node:24-bullseye
|
|
14
|
-
- os: macos-latest
|
|
15
|
-
platform: macos
|
|
16
|
-
- os: windows-latest
|
|
17
|
-
platform: windows
|
|
18
|
-
runs-on: ${{ matrix.os }}
|
|
19
|
-
container: ${{ matrix.container || '' }}
|
|
8
|
+
runs-on: ubuntu-latest
|
|
20
9
|
permissions:
|
|
21
10
|
contents: read
|
|
22
11
|
steps:
|
|
23
12
|
- name: โคต๏ธ Checkout
|
|
24
13
|
uses: actions/checkout@v6
|
|
14
|
+
- name: Get version from package.json
|
|
15
|
+
id: get_version
|
|
16
|
+
run: echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
|
|
25
17
|
- name: ๐จ Setup node
|
|
26
|
-
if: ${{ !matrix.container }}
|
|
27
18
|
uses: actions/setup-node@v6
|
|
28
19
|
with:
|
|
29
|
-
node-version: '24.
|
|
20
|
+
node-version: '24.14.0'
|
|
30
21
|
- name: ๐ท Install
|
|
31
22
|
run: npm ci
|
|
32
|
-
- name:
|
|
23
|
+
- name: ๐จ Install additional dependencies
|
|
24
|
+
shell: bash
|
|
25
|
+
run: npm install $(node -p "Object.entries(require('./node_modules/@screeps/launcher/package.json').devDependencies).map(([k,v])=>k+'@'+v).join(' ')")
|
|
26
|
+
- name: ๐งน Cleanup binaries
|
|
27
|
+
shell: bash
|
|
28
|
+
run: |
|
|
29
|
+
rm -rf node_modules/electron
|
|
30
|
+
rm node_modules/isolated-vm/build/Release/isolated_vm.node
|
|
31
|
+
rm node_modules/@screeps/driver/native/build/Release/native.node
|
|
32
|
+
rm node_modules/@screeps/driver/build/runtime.snapshot.bin
|
|
33
|
+
- name: ๐ Move node_modules to server/package/node_modules
|
|
34
|
+
shell: bash
|
|
35
|
+
run: |
|
|
36
|
+
mkdir -p server/package
|
|
37
|
+
mv node_modules server/package/node_modules
|
|
38
|
+
- name: ๐ฆ๏ธ Uplad package
|
|
33
39
|
uses: actions/upload-artifact@v7
|
|
34
40
|
with:
|
|
35
|
-
name: package-${{
|
|
36
|
-
path: node_modules
|
|
41
|
+
name: package-${{ env.VERSION }}
|
|
42
|
+
path: "*/package/node_modules/**"
|
|
43
|
+
include-hidden-files: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "screeps",
|
|
3
|
-
"version": "4.3.0
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "A standalone server for programming game Screeps",
|
|
5
5
|
"main": "package.json",
|
|
6
6
|
"bin": {
|
|
@@ -16,20 +16,17 @@
|
|
|
16
16
|
"url": "https://github.com/screeps/screeps.git"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@screeps/backend": "3.3.0
|
|
20
|
-
"@screeps/common": "2.16.0
|
|
21
|
-
"@screeps/driver": "5.3.0
|
|
22
|
-
"@screeps/engine": "4.3.0
|
|
23
|
-
"@screeps/launcher": "4.2.0
|
|
19
|
+
"@screeps/backend": "3.3.0",
|
|
20
|
+
"@screeps/common": "2.16.0",
|
|
21
|
+
"@screeps/driver": "5.3.0",
|
|
22
|
+
"@screeps/engine": "4.3.0",
|
|
23
|
+
"@screeps/launcher": "4.2.0",
|
|
24
24
|
"@screeps/pathfinding": "0.4.17",
|
|
25
|
-
"@screeps/storage": "5.1.3
|
|
25
|
+
"@screeps/storage": "5.1.3",
|
|
26
26
|
"node_modules-path": "2.0.7"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
29
|
"node": ">=22.9.0",
|
|
30
30
|
"npm": ">=10.8.2"
|
|
31
|
-
},
|
|
32
|
-
"publishConfig": {
|
|
33
|
-
"tag": "beta"
|
|
34
31
|
}
|
|
35
32
|
}
|