diff --git a/build.gradle b/build.gradle index 1460cd24..ef2e4c99 100644 --- a/build.gradle +++ b/build.gradle @@ -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 { @@ -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 + } } } diff --git a/client/package.json b/client/package.json index 0fd3d854..1d7c18f9 100644 --- a/client/package.json +++ b/client/package.json @@ -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/**/*", @@ -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",