mirror of
https://github.com/magefree/mage.git
synced 2026-09-11 11:58:30 +02:00
Page:
Development Workflow
Pages
AI Players
Changelog 1.4.52‐V5‐beta8
Changelog 1.4.52‐V5‐beta9
Changelog 1.4.52‐V6‐beta1
Changelog 1.4.52‐V6‐beta2
Changelog 1.4.52‐V6‐beta3
Changelog 1.4.52‐V6‐beta4
Changelog 1.4.52‐V6‐beta5
Changelog 1.4.52‐V6‐beta6
Changelog 1.4.52‐V6‐beta7
Changelog 1.4.52‐V6‐beta8
Changelog 1.4.52‐V6‐beta9
Changelog 1.4.52‐V7‐beta1
Changelog 1.4.52‐V7‐beta2
Changelog 1.4.52‐V7‐beta3
Changelog 1.4.52‐V7‐beta4
Changelog 1.4.52‐V7‐beta5
Changelog 1.4.52‐V7‐beta6
Changelog 1.4.52‐V7‐beta7
Changelog 1.4.52‐V7‐beta8
Changelog 1.4.52‐V7‐beta9
Changelog 1.4.52‐V8‐beta1
Changelog for next release
Code Templates
Creating a new release for xmage
DEv Release 2014_09_04 and older
Dev Release 2014_09_13
Dev Release 2014_09_26
Dev Release 2014_10_05
Dev Release 2014_10_18
Dev Release 2014_11_01
Dev Release 2014_11_08
Dev Release 2014_11_29
Dev Release 2015_02_07
Dev Release 2015_03_14
Developer Getting Started
Developer HOWTO Guides
Development HOWTO Guides
Development Testing Tools
Development Workflow
Home
Hosting an XMage server
Image test
Implementing Double Faced Cards
List of cards that will not be implemented on Xmage
Older Releases
Parse mtgsalvation spoiler data
Project Overview
Release 1.4.0
Release 1.4.1
Release 1.4.10
Release 1.4.11
Release 1.4.12
Release 1.4.13
Release 1.4.14
Release 1.4.15
Release 1.4.16
Release 1.4.17
Release 1.4.18
Release 1.4.19
Release 1.4.2
Release 1.4.20
Release 1.4.21
Release 1.4.22
Release 1.4.23
Release 1.4.24
Release 1.4.25
Release 1.4.26
Release 1.4.27
Release 1.4.28
Release 1.4.29
Release 1.4.3
Release 1.4.30
Release 1.4.31
Release 1.4.32
Release 1.4.33
Release 1.4.34
Release 1.4.35
Release 1.4.36
Release 1.4.37
Release 1.4.38
Release 1.4.39
Release 1.4.4
Release 1.4.40
Release 1.4.41
Release 1.4.42
Release 1.4.43
Release 1.4.44
Release 1.4.45
Release 1.4.46
Release 1.4.47
Release 1.4.48
Release 1.4.49
Release 1.4.5
Release 1.4.50
Release 1.4.53
Release 1.4.54
Release 1.4.55
Release 1.4.56
Release 1.4.57
Release 1.4.58
Release 1.4.59
Release 1.4.6
Release 1.4.60
Release 1.4.61
Release 1.4.7
Release 1.4.8
Release 1.4.9
Release changes
Server configuration
Set implementation list
Setting up your Development Environment
Supported deck formats
No results
3
Development Workflow
The Bear edited this page 2022-03-24 20:31:55 +01:00
Project preparation and pull request creation
- Make your own copy of xmage repository (fork it from xmage page):

- Go to your project page and make new branch for all changes:

- Use IDE tools to clone your github project:

- Switch to your branch by IDE and make any commits to it;
- Open your repository on github and press "new pull request button" to create PR for main xmage repository:

Test other pull request
If you want to test other pull request before merge.
Simple way:
Difficult way:
- Go to pull request page and save it's number like #4306;
- Open git and run command to fetch new pull request to new branch:
git fetch origin pull/4306/head:test-pull-requestwhere:
origin-- name of the xmage repository (to find out it in IntellJ IDEA go toVCS -> Git -> Remotes);4306-- pull request number;test-pull-request-- temporary branch for test;
- Open new created branch by
checkout test-pull-request;
Build your own release
If you want to build your own release (nightly build) and distribute it to your friends then follow that:
- Install IDE and setup it to build xmage projects (see Developer Getting Started);
- Build full source code for client and server by
clean install -DskipTestsmaven command:
- Build release packs for client and server by
assembly:assemblymaven command:
- Download official release, run it, update all files, clean up it and prepare for re-release:
- Delete folder
..xmage\java(you can't distribute with client -- each OS used different java versions and must download it by launcher); - Open
installed.propertiesfile in launcher folder and remove linejava.version=...(it's help launcher to download new java on startup); - You can also edit line
xmage.version=1.4.29V4 (2018-05-01)to change it to current versions -- it's help disable update notification about "new version available" on startup; - Delete all files and folders in
..xmage\mage-client\plugins\images(if you want distribute your client with card images and icons then do not clean it); - Delete all files in
..xmage\mage-client\dband in..\xmage\mage-server\db(it's help to re-create update cards data);
- Delete folder
- Copy zip-files and unpack it to that release folder with file replacement:
..\Mage.Client\target\mage-client.zip;..\Mage.Server\target\mage-server.zip;
- Zip all xmage folder and release that pack -- other users must download it, unzip, run launcher, update java and start to play (do not use "update" again after java download -- it's will rewrite your files with official release;
- Some versions is not fully compatible with current official servers and potential can cause bugs and freezes -- try to use it with new server.
