build a dist file