-
Notifications
You must be signed in to change notification settings - Fork 842
Development Workflow
The Bear edited this page Mar 24, 2022
·
3 revisions
- 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:
If you want to test other pull request before merge.
Simple way:
- Use github hints by click on "view command line instructions":
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;
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.