Skip to content

Commit

Permalink
add build targets to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
acrantel committed Dec 25, 2023
1 parent 74695c7 commit cbbf8d5
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 12 deletions.
24 changes: 24 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,14 @@ task releaseClientLinux(type: Zip, dependsOn: ['prodClient']) {
from fileTree('client/dist/linux-unpacked')
}

task releaseClientWin32(type: Zip, dependsOn: ['prodClient']) {
from fileTree('client/dist/win-ia32-unpacked')
}

task releaseClientLinux32(type: Zip, dependsOn: ['prodClient']) {
from fileTree('client/dist/linux-ia32-unpacked')
}


publishing {
publications {
Expand Down Expand Up @@ -215,5 +223,21 @@ publishing {

artifact releaseClientLinux
}

clientWin32(MavenPublication) {
groupId 'org.battlecode'
artifactId 'battlecode24-client-win-32'
version project.findProperty('release_version') ?: 'NONSENSE'

artifact releaseClientWin32
}

clientLinux32(MavenPublication) {
groupId 'org.battlecode'
artifactId 'battlecode24-client-linux-32'
version project.findProperty('release_version') ?: 'NONSENSE'

artifact releaseClientLinux32
}
}
}
50 changes: 38 additions & 12 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,46 @@
"tauri": "tauri",
"clean": "rimraf dist",
"electron-watch": "concurrently --kill-others \"npm run watch\" \"wait-on http://localhost:3000 && electron .\"",
"electron-pack": "USE_HARD_LINKS=false electron-builder build -mwl --dir --x64 --publish never",
"electron-pack": "USE_HARD_LINKS=false electron-builder build -mwl --dir --ia32 --x64 --publish never",
"electron-build": "npm run build && npm run electron-pack"
},
"build": {
"appId": "battlecode-client",
"appId": "org.battlecode.client",
"productName": "Battlecode Client",
"compression": "maximum",
"fileAssociations": [
{
"ext": "bc24",
"name": "BC24",
"description": "Battlecode Match 2024",
"role": "Viewer",
"icon": "build/icon"
},
{
"ext": "map24",
"name": "MAP24",
"description": "Battlecode Map 2024",
"role": "Viewer",
"icon": "build/icon"
}
],
"mac": {
"target": [
"dir"
],
"category": "public.app-category.games",
"hardenedRuntime": "true"
},
"win": {
"target": [
"dir"
]
},
"linux": {
"target": [
"dir"
]
},
"files": [
"**/*",
"dist/**/*",
Expand All @@ -33,16 +68,7 @@
"!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}",
"icons/*"
],
"includeSubNodeModules": true,
"mac": {
"icon": "icons/icon.icns"
},
"win": {
"icon": "icons/icon.ico"
},
"linux": {
"icon": "icons/icon.png"
}
"includeSubNodeModules": true
},
"repository": {
"type": "git",
Expand Down

0 comments on commit cbbf8d5

Please sign in to comment.