This would almost certainly take A LOT of energy, depending on what weapons you're constructing, and it would also take time. Your best solution is to make a technology that is basically like Adapter Cards on your ship, modules to add new weaponry in, and use magic users/mages -- A LOT of mages -- to build the weapons, something which, depending on what you're building, could take several posts.