build: support staged installation