You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -64,12 +67,6 @@ You get a list of all available commands with `kimai`.
64
67
-`kimai version` - show the full version string of the remote installation
65
68
-`kimai configuration` - creates the initial configuration file or displays it
66
69
67
-
The following commands will help you with updating the command:
68
-
69
-
-`kimai self:check` - check if there is a new version available
70
-
-`kimai self:update` - update your local version to the latest release
71
-
-`kimai self:rollback` - rollback to a previous release
72
-
73
70
To get help for a dedicated command use the `--help` switch, eg: `kimai project:list --help`
74
71
75
72
### Start a timesheet
@@ -121,9 +118,49 @@ The following environment variables are supported:
121
118
-`KIMAI_MEMORY_LIMIT` - configures the allowed memory limit (eg `128MB`, or `-1` for unlimited) (see [here](https://www.php.net/manual/en/ini.core.php#ini.memory-limit))
122
119
-`KIMAI_CONFIG` - path to your configuration file (defaults to: $HOME/.kimai2-console.json)
123
120
124
-
## How to build a release
121
+
## FAQ
122
+
123
+
### Updating the Console tools
124
+
125
+
The following commands will help you with updating the Console tools:
126
+
127
+
-`kimai self:check` - check if there is a new version available
128
+
-`kimai self:update` - update your local version to the latest release
129
+
-`kimai self:rollback` - rollback to a previous release
130
+
131
+
There are security concerns with this approach, if you are cautious stick to the initial installation process.
132
+
133
+
The `update` command will create a copy beside the original executable (if you wondered what `kimai-old.phar` is: now you know!), which is used by the `rollback` command.
134
+
135
+
### Check the contents of the PHAR
136
+
137
+
There are several ways to see the contents of the PHAR, here are some:
138
+
139
+
```
140
+
phar extract -f kimai.phar
141
+
box info kimai.phar -l
142
+
```
143
+
144
+
The PHAR contents are GZ compressed and verified with a SHA512 signature by the PHAR interpreter.
145
+
146
+
### Build from source
147
+
148
+
You need to have PHP cli installed with all required dependencies.
149
+
The dependencies might differ from than the ones required for running the tools.
150
+
Then install the [humbug/box](https://github.com/humbug/box) project,
151
+
according to their [installation docs](https://github.com/humbug/box/blob/master/doc/installation.md#installation).
152
+
153
+
Now compiling the PHAR is simple as calling:
154
+
155
+
```bash
156
+
box compile
157
+
```
158
+
159
+
### Release on GitHub
125
160
126
161
- Bump version in `src/Constants.php`
127
162
- Execute `box compile`
163
+
- Execute `sha1sum kimai.phar > kimai.phar.sha1`
128
164
- Prepare a new GitHub release
129
-
- Upload the file `kimai.phar` to the new release
165
+
- Upload the files `kimai.phar` and `kimai.phar.sha1` to the new release
0 commit comments