blob: 7ff03ad7811d84c43eeb16adcbed647553e6ec30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
## Master
### via curl
```bash
bash <(curl -fsSL https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.sh)
```
### via wget
```bash
bash <(wget https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.sh -O -)
```
### via powershell
```bash
Invoke-Expression (Invoke-Webrequest 'https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.ps1' -UseBasicParsing).Content
```
## Windows
### via installer
1. Download xmake windows installer from [Releases](https://github.com/xmake-io/xmake/releases)
2. Run xmake-[version].exe
### via scoop
```bash
scoop install xmake
```
## MacOS
```bash
$ brew install xmake
```
## Linux
On Archlinux:
```bash
$ yaourt xmake
```
On Ubuntu:
```bash
$ sudo add-apt-repository ppa:tboox/xmake
$ sudo apt update
$ sudo apt install xmake
```
Or add xmake package source manually:
```
deb http://ppa.launchpad.net/tboox/xmake/ubuntu yakkety main
deb-src http://ppa.launchpad.net/tboox/xmake/ubuntu yakkety main
```
Then we run:
```bash
$ sudo apt update
$ sudo apt install xmake
```
Or download deb package to install it:
1. Download xmake `.deb` install package from [Releases](https://github.com/xmake-io/xmake/releases)
2. Run `dpkg -i xmake-xxxx.deb`
## Compilation
Compile and install:
```bash
$ git clone https://github.com/xmake-io/xmake.git
$ cd ./xmake
$ ./scripts/get.sh __local__
```
Only install and update lua scripts:
```bash
$ ./scripts/get.sh __local__ __install_only__
```
Uninstall:
```bash
$ ./scripts/get.sh __uninstall__
```
Or compile and install via make:
```bash
$ make build; sudo make install
```
Install to other given directory:
```bash
$ sudo make install prefix=/usr/local
```
Uninstall:
```bash
$ sudo make uninstall
```
## Update
We can run `xmake update` to update xmake version after v2.2.3 and we can also update to the given version:
```bash
$ xmake update 2.2.4
```
We can also specify an update to the master/dev branch version:
```bash
$ xmake update master
$ xmake update dev
```
Finally, if we want to uninstall xmake, it is also supported: `xmake update --uninstall`.
|